简介
该用户还未填写简介
擅长的技术栈
未填写擅长的技术栈
可提供的服务
暂无可提供的服务
vue列表去重
vue列表去重vue列表去重let arr = [1,1,2,3,4,2,5,2,1,3]let newList = [...new Set(arr)]console.log(newList)
vue点击div更换颜色
vue点击div更换颜色<template><div class="box" :class="boxColor =! boxColor"></div></template><script>export default {data (){return {boxColor: false}},methods:{}}</script>
VUE删除数组指定的元素
vue删除数组中指定的元素export default{data(){return {mpList: ['测试一','测试二','测试三']}},methods:{del(item){let listVar = new Arrayfor(let i=0; i<this.mpList.length; i++){listVar.push(this.mpList)if (this.mpList[i
到底了