摘要:
子组件Js sum:{ type:Number, value:null, observer: function(newVal, oldVal, changedPath) { console.log("newVal",newVal) console.log("oldVal",oldVal) // 属性 阅读全文
posted @ 2020-09-09 14:39
会飞de佩奇
阅读(217)
评论(0)
推荐(0)
摘要:
子给父传值 子组件 wxml <view> <text bindtap="addInfo">自给父传参</text> </view> 子组件Js methods: { addInfo(){ let item = { a:"3333" } this.triggerEvent('addInfo',ite 阅读全文
posted @ 2020-09-09 13:30
会飞de佩奇
阅读(149)
评论(0)
推荐(0)