vue使用splice操作数组更新页面

直接对数组元素赋值,是不会更新视图的。要使用arr.splice()方法更新数组,才会更新视图。

 
 
 

 

你可能感兴趣的:(vue使用splice操作数组更新页面)