vue中数组删除,页面没重新渲染
摘要:
创建一个组件时,数据类型是数组,在删除这个数组中的数据时,数组中的数据是对的,但页面渲染的数据却不对。 举例:(不一定复现) <ul> <li v-for="(item, index) in peoples" :key="index">{{item.name}} <span @click="del( 阅读全文
posted @ 2018-05-21 17:10 daV_chen 阅读(1520) 评论(0) 推荐(0)
浙公网安备 33010602011771号