如何看待微信公开课小程序热门讨论「小程序赋值操作没明白」
摘要:小程序赋值操作没明白
展开:源码:bindMultiPickerColumnChange:function(e){varjectMulnewArray;vardata{objectMultiArray:this.data.objectMultiArray,multiIndex:this.data.multiIndex};data.multiIndex[e.detail.column]e.detail.value;varthatthis;wx.request({url:AppData.AppConfigData.weburl+/WxForm/WebClass2.html,data:{cid:data.objectMultiArray[0][e.detail.value].id},method:GET,header:{contenttype:application/json},success:function(res){that.setData({jectMul:res.data})}});this.data.objectMultiArray[1]this.data.jectMul;console.log(asdasd值22为,this.data);console.log(asdasd值23332为,jectMul);data.multiIndex[1]0;this.setData(this.data);},这个是一个二级联动分类选择器。选择一级后,根据ID读数据库显示二级。this.data显示jectMul是实时数据但this.data.jectMul是不确定数据!!怎么才能使this.data.objectMultiArray[1]this.data.jectMul;这个等式成立。每次调用都准确替换objectMultiArray的值了解更多