tab: [
{
imgSrc: "/images/tab-xl.png",
tit: "销量",
postId: 0
},
{
imgSrc: "/images/tab-jg.png",
tit: "价格",
postId: 1
},
{
imgSrc: "/images/tab-rq1.png",
tit: "人气",
postId: 2
},
{
imgSrc: "/images/tab-zx.png",
tit: "新品",
postId: 3
}
]
如题,我有一组数据!
例如我想修改tab[2]中的imgSrc中的value
重点:如何通过微信小程序中的setData方法来修改指定的value?
data:
修改: