摘要: 子组件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)
摘要: 在异步 effects里好像只有yield能触发put ,call暂时没定 call会把return 传回来 put把参数穿回来了 阅读全文
posted @ 2020-08-12 17:01 会飞de佩奇 阅读(157) 评论(0) 推荐(0)