>》>》>》>》
摘要: 第一种: router.js中添加 mode: 'history', srcollBehavior(to,from,savedPosition){ if(to.hash){ return { selector:to.hash } } } 组件: <template> <div> <ul class= 阅读全文
posted @ 2019-12-13 19:36 大、锤 阅读(1653) 评论(0) 推荐(0) 编辑
摘要: up(index) { if(index 0) { return } //在上一项插入该项 this.list.splice(index - 1, 0, (this.list[index])) //删除后一项 this.list.splice(index + 1, 1) this.save(); } 阅读全文
posted @ 2019-12-13 16:33 大、锤 阅读(4628) 评论(0) 推荐(1) 编辑