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

手机网站开发有前途企业所得税税率2022

手机网站开发有前途,企业所得税税率2022,网站设计制作策划书,宁波做网站制作基础的子组件和父组件通信已经搞定了#xff0c;可以看此博客 父子组件传值基础应用 需求 现在需求是在一个父页面引用子组件#xff0c;不只是要实现基本的父子组件传值。并且子组件给父组件传值的触发条件要在父页面触发。 目前小编采用的方式是使用ref 属性this.emit 方法…基础的子组件和父组件通信已经搞定了可以看此博客 父子组件传值基础应用 需求 现在需求是在一个父页面引用子组件不只是要实现基本的父子组件传值。并且子组件给父组件传值的触发条件要在父页面触发。 目前小编采用的方式是使用ref 属性this.emit 方法 在父页面调用子页面的方法结合this.emit方法实现。在父页面调用子页面的方法并且把子页面里的值通过父页面的自定义事件传递到父页面。 注意先新建子页面然后进行父子传值在父页面注册子页面为组件 父-子传值 父页面 templatediv classhelloChildComponents:msgmsgc/ChildComponentsbutton clicksend()向子组件传值/button/div /templatescript import ChildComponents from./ChildComponents.vue export default {name: HelloWorld,components: {ChildComponents:ChildComponents},data () {return {msgc:}},methods:{send(){this.msgc来自HelloWorld父组件的值;}} } /script!-- Add scoped attribute to limit CSS to this component only -- style scoped h3 {margin: 40px 0 0; } ul {list-style-type: none;padding: 0; } li {display: inline-block;margin: 0 10px; } a {color: #42b983; } /style 子页面 templatedivdivh1子组件的值/h1/divdiv{{msg}}br//div/div /templatescriptexport default {name: test,components: {},props: {msg: String},data () {return {}} } /script style scoped/style 结果 子-父传值 子页面触发 父页面 templatediv classhelloChildComponentssendMsgsendMsg:msgmsgc/ChildComponentsh1父组件的值/h1br/{{msgp}}button clicksend()向子组件传值/button/div /templatescript import ChildComponents from./ChildComponents.vue export default {name: HelloWorld,components: {ChildComponents:ChildComponents},data () {return {msgc:,msgp:,}},methods:{sendMsg(data) {this.msgpdata;},send(){this.msgc来自HelloWorld父组件的值;}} } /script!-- Add scoped attribute to limit CSS to this component only -- style scoped h3 {margin: 40px 0 0; } ul {list-style-type: none;padding: 0; } li {display: inline-block;margin: 0 10px; } a {color: #42b983; } /style 子页面 templatedivdivh1子组件的值/h1/divdiv{{msg}}br/button clicksendMsg()向父组件传值/button/div/div /templatescriptexport default {name: test,components: {},props: {msg: String},data () {return {}},methods: {sendMsg() {//子页面的值推送到父页面的自定义事件里this.$emit(sendMsg,来ChildComPonens自子组件的值)}}} /script style scoped/style 结果 父页面触发 父页面需要修改的地方 ChildComponentssendMsgsendMsgrefchile:msgmsgc/ChildComponentsh1父组件的值/h1br/{{msgp}}button clicksendParnt()子组件向父组件传值父组件触发/button//增加一个方法methods:{sendParnt() {this.$refs.chile.sendmsgP()}} 子组件只需要增加一个方法 sendmsgP 父页面可以通过ref 调用 methods: {sendMsg() {this.$emit(sendMsg,来ChildComPonens自子组件的值)},sendmsgP(){this.sendMsg()}} 结果
http://www.zqtcl.cn/news/184223/

相关文章:

  • 网站备案幕布怎么申请绍兴cms建站模板
  • 做网站熊掌号软件设计公司排名
  • 深圳 做网站学做西点的网站
  • 静态网站安全性百度服务平台
  • 网站vi设计公司网站建设app
  • 书店网站建设策划书总结每天看七个广告赚40元的app
  • 做网站的属于什么专业成都广告制作安装公司
  • 天津市网站建设公司网站制作费用
  • 网站制作公司 郑州wordpress图片中文不显示解决
  • 网站建设模式有哪些方面jquery做的装修网站
  • 佛山手机建网站企业网站公司单位有哪些
  • 给企业做网站的平台有没有专门做衣服搭配的网站
  • 青岛本地网站最近军事新闻大事
  • 潍坊哪里有做360网站的成都官微最新发布
  • 还有哪些网站可以做淘宝活动企业建设网站的方式
  • 上海技术公司做网站2022引流人脉推广软件
  • 网站排名优化技术安徽省城乡和建设厅网站
  • 平阴县建设工程网站英文网站模板制作
  • 网站制作超链接怎么做厦门公司建站
  • 阿里云做的网站怎么备份建筑设计网站issuu
  • 网上做设计网站广西做网站找谁
  • 网站优化成本建设项目网站备案申请表
  • 做公众号首图网站上海短期网站建设培训
  • 网站开发最好佛山优化网站排名
  • 服务器搭建网站打不开网站建设信息平台
  • 宽屏蓝色企业网站源码如何编辑网站标题
  • 免费搭建手机网站广告公司怎么取名
  • 网站抓取超时错误c 高性能网站开发
  • 营销导向企业网站策划wordpress 不显示菜单
  • 特效视频网站用.net做视频网站的案例