03 2019 档案

摘要:export default new Router({ routes: [ { path: '/', name: 'index', component: index, children: [ { path: '/demo', name: 'demo', component: HelloWorld, 阅读全文
posted @ 2019-03-27 10:25 Webwhl 阅读(2336) 评论(0) 推荐(0) 编辑
摘要:<li v-for="article in articles" @click="getDescribe(article.id)"> getDescribe(id) { // 直接调用$router.push 实现携带参数的跳转 this.$router.push({ path: `/describe 阅读全文
posted @ 2019-03-27 10:24 Webwhl 阅读(183) 评论(0) 推荐(0) 编辑
摘要:import $ from '../../static/js/jquery.min.js' window.jQuery = $; require('../../static/js/jquery.zoom.js') 阅读全文
posted @ 2019-03-26 20:36 Webwhl 阅读(1703) 评论(0) 推荐(0) 编辑
摘要:1、开始在vue项目中使用sass,在命令行输入一下命令进行安装(使用git命令行要用shift+insert 进行粘贴否则粘贴不上) 阅读全文
posted @ 2019-03-22 17:49 Webwhl 阅读(2034) 评论(0) 推荐(0) 编辑
摘要:① 使用npm(需要安装node环境)全局安装webpack,打开命令行工具输入:npm install webpack -g或者(npm install -g webpack),安装完成之后输入 webpack -v,如下图,如果出现相应的版本号,则说明安装成功。 注意:webpack 4.X 开 阅读全文
posted @ 2019-03-21 14:39 Webwhl 阅读(140) 评论(0) 推荐(0) 编辑

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