摘要:
第一种: 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
大、锤
阅读(1678)
评论(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
大、锤
阅读(4661)
评论(0)
推荐(1)

浙公网安备 33010602011771号