微信小程序中如何使用setData修改数组或对象中的某一参数

var printPrice = "item["+i+"].price";
this.setData({
[printPrice]: newvalue 
});
posted @ 2019-09-27 09:46  在学习编程的lsy呀  阅读(534)  评论(0编辑  收藏  举报