push()
pop()
shift()
unshift()
splice()
sort()
reverse()
当采用特殊方法操作数组后,导致无法更新数据到UI,此时可使用强制渲染,使用以下方法:
this.$forceUpdate()
push()
pop()
shift()
unshift()
splice()
sort()
reverse()
当采用特殊方法操作数组后,导致无法更新数据到UI,此时可使用强制渲染,使用以下方法:
this.$forceUpdate()