javascript - vue data updated. But the dom is not updated,,,,, as shown in the figure
仅有的幸福
仅有的幸福 2017-05-16 13:34:09
0
4
664


The operation is to click on the size, the data is updated, but the dom is not updated.

仅有的幸福
仅有的幸福

reply all(4)
迷茫

用this.$set(this, 'old', new)

漂亮男人

Use this.$nextTick() to update dom

伊谢尔伦

vue has an api called nextTick. Take a look

習慣沉默

You can also use splice to modify the array: arr.splice(index, 1, newValue);

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template