摘要: js 常用 API 整理 Array new Set() 数组去重 const arr = [3,4,4,5,4,6,5,7]; console.log(new Set(arr)); // {3,4,5,6,7} const a = Array.from(new Set(arr)) // [3, 4 阅读全文
posted @ 2021-09-03 10:29 丶残芯此生不换 阅读(203) 评论(0) 推荐(0)
摘要: 通过 params 传参 注意点1、路由后面必须带参数,2、传参的页面中name: 'content',不能写成name: '/content', //路由router.js { path: '/content/:data', name: 'content', component: content 阅读全文
posted @ 2021-08-30 15:08 丶残芯此生不换 阅读(66) 评论(0) 推荐(0)