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