当前位置: 首页 > wzjs >正文

外卖网站那家做的好给卖假性药的做网站一般要判多久

外卖网站那家做的好,给卖假性药的做网站一般要判多久,门户网站维护方案,莱州市招聘网站概述&#xff1a; $refs用于 &#xff1a;父→子。 $parent用于&#xff1a;子→父。 原理如下&#xff1a; 属性说明$refs值为对象&#xff0c;包含所有被ref属性标识的DOM元素或组件实例。$parent值为对象&#xff0c;当前组件的父组件实例对象。 child1组件 <templa…
  1. 概述:

    • $refs用于 :父→子。

    • $parent用于:子→父。

  2. 原理如下:
属性说明
$refs值为对象,包含所有被ref属性标识的DOM元素或组件实例。
$parent值为对象,当前组件的父组件实例对象。

child1组件

<template><div class="child1"><h3>子组件1</h3><h4>玩具:{{ toy }}</h4><h4>书本:{{ book }}本</h4><button @click="minusHouse($parent)">干掉父亲的一套房产</button></div>
</template><script setup lang="ts" name="Child1">
import { ref } from 'vue'
const toy = ref('奥特曼')
const book = ref(3)
const minusHouse = (parent) => {parent.house--
}
// 把数据交给外部
defineExpose({ toy, book })
</script><style scoped>
.child1 {background-color: rgb(173, 148, 232);height: 100px;margin: 10px 0;
}
</style>

child2组件:

<template><div class="child2"><h3>子组件2</h3><h4>手机:{{ phone }}</h4><h4>书本:{{ book }}本</h4></div>
</template><script setup lang="ts" name="Child2">
import { ref } from 'vue'
const phone = ref('oppo')
const book = ref(6)
// 把数据交给外部
defineExpose({ phone, book })
</script>
<style scoped>
.child2 {background-color: aquamarine;height: 80px;
}
</style>

father组件:

<template><div class="father"><h3>父组件</h3><h4>房产:{{ house }}</h4><button @click="changeToy()">修改child1的玩具</button><button @click="changePhone()">修改child2的手机</button><button @click="getAllChild($refs)">让所有孩子的书变多</button><Child1 ref="c1" /><Child2 ref="c2" /></div>
</template><script setup lang="ts" name="Father">
import Child1 from './Child1.vue'
import Child2 from './Child2.vue'
import { ref } from 'vue'
const c1 = ref()
const c2 = ref()
const house = ref(6)
// 把数据交给外部
defineExpose({house})
const changeToy = () => {c1.value.toy = '小猪佩奇'
}
const changePhone = () => {c2.value.phone = '华为'
}
const getAllChild = (refs: any) => {console.log(refs)for (let key in refs) {refs[key].book += 3}
}
</script>
<style scoped>
.father {background-color: pink;width: 200px;height: 400px;padding: 20px;
}button {margin: 5px 0;
}
</style>


文章转载自:

http://BTWtm20e.wfttq.cn
http://P3TEneQK.wfttq.cn
http://y2P3Pqn9.wfttq.cn
http://E4mRsZHh.wfttq.cn
http://aqQ9oZFj.wfttq.cn
http://Bbekz9TZ.wfttq.cn
http://mMvbU3Ao.wfttq.cn
http://KurTxZPb.wfttq.cn
http://GHZ9Sk1I.wfttq.cn
http://W329O3gN.wfttq.cn
http://MsRzqVpk.wfttq.cn
http://ZklpJ0FM.wfttq.cn
http://t7jOnm8A.wfttq.cn
http://0lDDbboW.wfttq.cn
http://FdOr2Pyx.wfttq.cn
http://niI4VZ6R.wfttq.cn
http://OlkhT1lk.wfttq.cn
http://3L0uiKJp.wfttq.cn
http://23mJzntw.wfttq.cn
http://mXpMn79E.wfttq.cn
http://zT9GLbXQ.wfttq.cn
http://p4DQjMe4.wfttq.cn
http://kiQoELTK.wfttq.cn
http://Ohqh3q8n.wfttq.cn
http://tyZexCYd.wfttq.cn
http://hSqFrwH3.wfttq.cn
http://wszUiglL.wfttq.cn
http://SPFbwgW7.wfttq.cn
http://csWsFbWB.wfttq.cn
http://a5rul9vQ.wfttq.cn
http://www.dtcms.com/wzjs/656337.html

相关文章:

  • 采集网站怎么做ptp网站开发
  • 建设网站需要多大域名空间管理外贸网站模板
  • 网站如何有排名站长检测同ip网站很多怎么办
  • 社交网站 备案快速搭建网站后天台
  • seo网站推广可以自己搞吗公司网站翻译工作怎么做
  • 易尔通做网站怎么样网站模板平台
  • 四川品牌网站建设广东网站建设发信息
  • 天津河北做网站的公司排名14版哥斯拉的官方做的宣传网站
  • 最美logo图案大全宜春seo网站推广
  • 网站关键词选取方法微信外链网站开发
  • 安徽省建设厅网站打不开网站外链建设教程
  • 莆田网站建设制作想做网络营销推广
  • 海口网站建设解决方案网址链接查询
  • 备案之后怎样把 放到网站上做网站需要后端吗
  • 玖云建站系统郑州seo询搜点网络效果佳
  • 安徽工程建设官方网站沈阳德泰诺网站建设公司
  • 湖南做网站 e磐石网络斗破苍穹制作公司
  • 网站搜索出来有图片二级建造师证件查询全国联网
  • 做境外的网站网站违法么在线制作带字图片
  • 运营一个网站的成本长春网络建站
  • 深圳网站设计按天收费有名的网站建设
  • vue做购物网站WordPress一键采集插件
  • 做公众号app 网站 app做网批有专门的网站吗?
  • 做商城网站的项目背景图片指数分布
  • 旅行社网站建设方案论文网站制作资讯
  • 网站访问统计 曲线图中企动力大连分公司
  • dedecms双语网站做任务兼职赚钱的网站
  • 深圳服务网站设计哪家公司好wordpress的用途
  • 企业门户网站框架设计中关村报价大全手机
  • 网站开发使用框架原因宿迁盐城网站建设企业