上一页 1 ··· 52 53 54 55 56 57 58 59 60 ··· 129 下一页
摘要: https://blog.csdn.net/qq_32407233/article/details/83819831 不想污染全局作用域。这种情况下,你可以通过在原型上定义它们使其在每个 Vue 的实例中可用。 Vue.prototype.$appName = 'My App' 这样 $appNam 阅读全文
posted @ 2020-03-03 14:31 ThisCall 阅读(769) 评论(0) 推荐(0)
摘要: 先创建store数据仓库 import Vue from 'vue' import Vuex from 'vuex' // import user from './modules/user' Vue.use(Vuex) export default new Vuex.Store({ modules: 阅读全文
posted @ 2020-03-03 10:36 ThisCall 阅读(5728) 评论(1) 推荐(0)
摘要: // 引用 npm ip包,用来获取本地ip等操作,文档地址:https://www.npmjs.com/package/ip const ip = require('ip') // 引用path包(path属于node自带包,无需在package.json中引用安装即可直接引用),用来操作路径,文 阅读全文
posted @ 2020-03-02 16:36 ThisCall 阅读(1114) 评论(0) 推荐(0)
摘要: "rules": { "generator-star-spacing": "off", "no-tabs":"off", "no-unused-vars":"off", "no-console":"off", "no-irregular-whitespace":"off", "no-debugger 阅读全文
posted @ 2020-03-02 14:25 ThisCall 阅读(2866) 评论(0) 推荐(0)
摘要: 查询左表a,并且关联a表在b表中的关联,如果关联不存在也可以查出左表的,注:只查询a的部分列,和b的部分列 SELECT a.id, b.id as my FROM a LEFT JOIN b ON a.category_id=b.id 查询左表a,并且关联a表在b表中的关联,如果关联不存在也可以查 阅读全文
posted @ 2020-03-02 10:30 ThisCall 阅读(178) 评论(0) 推荐(0)
摘要: main.js import Router from 'vue-router' // 这个是为了避免一个报错 const originalPush = Router.prototype.push; Router.prototype.push = function push(location) { r 阅读全文
posted @ 2020-02-28 14:24 ThisCall 阅读(1262) 评论(0) 推荐(0)
摘要: # 通过 npm 安装 npm i vant -S 安装完配置 babel.config.js module.exports = { presets: ['@vue/app'], plugins: [ 'lodash', [ 'import', { libraryName: 'vant', libr 阅读全文
posted @ 2020-02-27 18:03 ThisCall 阅读(1341) 评论(0) 推荐(0)
摘要: const Tabbar = () => import('@/components/Tabbar'); export default [ { path: '/', name: 'home', components: { //default与tabbar 等是同级路由模块,可以按命名控制展示与否 de 阅读全文
posted @ 2020-02-27 16:42 ThisCall 阅读(279) 评论(0) 推荐(0)
摘要: npm i --save-dev node-sass sass-loader 二、手动安装如果在创建项目没有选择CSS 预处理器,我们也可以手动安装sass-loader以及 node-sass来集成scss。 npm install -D sass-loader node-sass npm ins 阅读全文
posted @ 2020-02-27 14:17 ThisCall 阅读(445) 评论(0) 推荐(0)
摘要: 最原始没有任何干扰的路由拦截 其他资料 import Vue from 'vue'; import Router from 'vue-router'; import home from './home'; Vue.use(Router); const RouterModel = new Router 阅读全文
posted @ 2020-02-27 13:29 ThisCall 阅读(1873) 评论(0) 推荐(0)
上一页 1 ··· 52 53 54 55 56 57 58 59 60 ··· 129 下一页