天天看点

Vue:中向对象中添加数据

需求:向good对象中添加checked:true

使用$set或引入vue,使用Vue.set

实现:

Vue.set(good,'checked',true);      
z