标签:span style nbsp 删除 ice index js数组 == color
up(index) { if(index === 0) { return } //在上一项插入该项 this.list.splice(index - 1, 0, (this.list[index])) //删除后一项 this.list.splice(index + 1, 1) this.save(); }, down(index) { if (index === (this.list.length-1)) { return } // 在下一项插入该项 this.list.splice(index + 2, 0, (this.list[index])) // 删除前一项 this.list.splice(index, 1) this.save(); },
标签:span style nbsp 删除 ice index js数组 == color
原文地址:https://www.cnblogs.com/ll15888/p/12035938.html