06 2021 档案

摘要:使用菜单栏进行路由跳转有几个注意点: 1. 在el-menu加上router 2. index必须绑定路由的path,参考上面的例子,'/'不能少 3. default-active设为当前路由(this.$route.path),这样在路由变化的时候,对应的menu-item才会高亮。 阅读全文
posted @ 2021-06-26 09:27 三只小熊sky 阅读(1486) 评论(0) 推荐(0) 编辑
摘要:首先,安装插件:Vetur,ESLint,Prettier 然后,打开设置文件:settings.json 设置完后,ctrl+s 自动格式化去掉红线 { "sync.gist": "7f58d878baccb6292df82aaacbe07902", "sync.autoDownload": tr 阅读全文
posted @ 2021-06-19 09:27 三只小熊sky 阅读(4122) 评论(0) 推荐(0) 编辑
摘要:let arr = ['1','55','88','4','9']; Math.max.apply(null, arr) Math.min.apply(null, arr) 阅读全文
posted @ 2021-06-08 16:59 三只小熊sky 阅读(50) 评论(0) 推荐(0) 编辑
摘要:// 空白隐藏 let _this = this; document.addEventListener('click', function (e) { let flagInfo = e.target.contains(document.getElementsByClassName('flag')[0 阅读全文
posted @ 2021-06-05 17:33 三只小熊sky 编辑
摘要:/ //根据id去重 var obj = {}; this.majorCheckbox = this.majorCheckbox.reduce(function (item, next) { obj[next.id] ? '' : obj[next.id] = true && item.push(n 阅读全文
posted @ 2021-06-05 17:31 三只小熊sky 阅读(81) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示