Vue改变(或增加)数组或对象中的数据---set()

在之前说过 改变对象的数据只能改变他的引用,其实还有一个set()的方法可以操作: 这是3.8的代码 <!DOCTYPE html> <html> <head> <title>列表渲染</title> <script src="vue.js"></script> </head> <body> <div id="app"> <div v-for="(item, key, index) of
相关文章
相关标签/搜索