vue(8)v-model与JavaScript中array对象的配合使用
序
实现了之前代码的删除功能,并加入了对于复选框的全选,全不选,反选等功能
示例代码
展开查看
- {{i.text}}<button @click="removes(index)">X
香蕉
苹果
芒果
芭乐
<button @click="allChecked">全选
<button @click="allNotCheck()">全不选
<button @click="reverseCheck()">反选
运行效果


浙公网安备 33010602011771号