摘要: module.exports = { root: true, env: { node: true }, extends: ["plugin:vue/essential", "eslint:recommended"], parserOptions: { parser: "babel-eslint" } 阅读全文
posted @ 2021-01-21 16:07 syqaily 阅读(59) 评论(0) 推荐(0) 编辑
摘要: el-menu 上面加上 :default-active="this.$router.path" router el-main 里面加上 <router-view></router-view> 阅读全文
posted @ 2020-10-12 10:32 syqaily 阅读(2457) 评论(0) 推荐(0) 编辑
摘要: 1.首先需要安装依赖 cnpm install --save vue-clipboard2 2.在main.js中使用 import VueClipboard from 'vue-clipboard2' Vue.use(VueClipboard) 3. Dome的使用: <template> <di 阅读全文
posted @ 2020-09-28 14:23 syqaily 阅读(296) 评论(0) 推荐(0) 编辑
摘要: 1. Material Theme 编辑器主题 2. Prettier - Code formatter 代码格式化 3. CSS Peek 快速定位css样式 4. Auto Rename Tag 快速修改html标签 阅读全文
posted @ 2020-09-19 21:58 syqaily 阅读(81) 评论(0) 推荐(0) 编辑
摘要: cli3使用less更为简单些,只需安装less依赖包即可 cnpm i less less-loader -D <style lang="less"> </style> 阅读全文
posted @ 2020-09-18 10:04 syqaily 阅读(1938) 评论(0) 推荐(0) 编辑
摘要: 在Vue-cli 3.0搭建的项目中,对于移动端的适配使用到lib-flexible 和 postcss-pxtorem 这两个插件 使用方法 1. cnpm install lib-flexible postcss-pxtorem --save 2. 在main.js 文件中引入import 'l 阅读全文
posted @ 2020-09-18 09:54 syqaily 阅读(388) 评论(0) 推荐(0) 编辑
摘要: 文件-->首选项-->用户代码片段-->点击新建代码片段--取名vue.json 确定 { "Print to console": { "prefix": "vue", "body": [ "<template>", "</template>", "", "<script>", "", "expor 阅读全文
posted @ 2020-09-14 17:00 syqaily 阅读(198) 评论(0) 推荐(0) 编辑
摘要: getNowFormatDate(n) { if(n==''){ n=new Date() } var date = new Date(n); var seperator1 = "-"; var year = date.getFullYear(); var month = date.getMonth 阅读全文
posted @ 2020-08-20 15:08 syqaily 阅读(548) 评论(0) 推荐(0) 编辑
摘要: GetRequest() { var url = location.search; //获取url中"?"符后的字串 var theRequest = new Object(); if (url.indexOf("?") != -1) { var str = url.substr(1); var s 阅读全文
posted @ 2020-08-20 15:02 syqaily 阅读(111) 评论(0) 推荐(0) 编辑
摘要: var url=window.location.href; //获取当前页面的url if(url.indexOf("?")!=-1){ //判断是否存在参数 url = url.replace(/(\?|#)[^'"]*/, ''); //去除参数 window.history.pushState 阅读全文
posted @ 2020-08-20 15:01 syqaily 阅读(497) 评论(0) 推荐(0) 编辑