07 2020 档案

摘要:分享一种平时用的三段式布局(flex) 主要思路是 上中下 header&footer 给高度 main 占其余部分 html 部分 <div class='wrap'> <div class='header'></div> <div class='main'></div> <div class=' 阅读全文
posted @ 2020-07-04 16:20 JSJH 阅读(257) 评论(0) 推荐(0)
摘要:vue 的路由跳转 声明式路由:<router-link><router-link> 编程式跳转: this.$router.push(`/path${id}`) & this.$router.push({name:'detail', params:{id}}) 动态路由 { path:'/main 阅读全文
posted @ 2020-07-03 13:46 JSJH 阅读(322) 评论(0) 推荐(0)
摘要:1、在package.json文件同级目录下新建 vue.config.js module.exports = { devServer: { proxy: { '/ajax': { target: 'https://m.maoyan.com', //后台接口域名 // ws: true, //如果要 阅读全文
posted @ 2020-07-02 23:03 JSJH 阅读(659) 评论(0) 推荐(0)
摘要:<router-link @click.native='changeInd()'></router-link> 添加默认click会被阻止 要加 .native修饰符 阅读全文
posted @ 2020-07-02 22:53 JSJH 阅读(1337) 评论(0) 推荐(0)
摘要:.eslintrc文件 module.exports = { root: true, env: { node: true }, extends: [ 'plugin:vue/essential', '@vue/standard' ], parserOptions: { parser: 'babel- 阅读全文
posted @ 2020-07-02 14:31 JSJH 阅读(981) 评论(0) 推荐(0)