首页 新闻 会员 周边

avalon2组件ms-for改变数组时不生效

0
悬赏园豆:50 [已关闭问题] 关闭于 2017-07-20 09:48

点击事件后给数组赋值

RecognizeeInfo = { name: 1, sex: '女', type: "身份证", number: 3, birth: 5 }

productAll = [{ name: 1, sex: '男', type: "身份证", number: 3, birth: 5 }]

<tr ms-for="($index,el) in @productAll">
<td>{{ $index+1 }}</td>
<td ms-for="(k,v) in el">{{ v }}</td>
<td><span ms-click="addRecognizee($index)">修改</span>
</tr>

事件完成后 this.productAll的值已经改变 但是并没有渲染

addRecognizee: function (index) {
productAll.set(index, RecognizeeInfo);
},

天上掉粑粑的主页 天上掉粑粑 | 菜鸟二级 | 园豆:208
提问于:2017-07-19 16:09
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册