const router = new VueRouter({ linkActiveClass:"active", //设置激活样式 class属性名 routes }) .acti...
  • Vue
  • 2023-03-06
Invalid default value for prop “categories”: Props with type Object/Array must use a facto...
  • Vue
  • 2023-03-06
$h: { //除法函数,用来得到精确的除法结果 //说明:javascript的除法结果会有误差,在两个浮点数相除的时候会比较明显。这个函数返回较为精确的除法结果。 //调用:$...
  • Vue
  • 2023-03-06
安装 npm i -g vite //或 yarn global add vite 非脚手架 npx启动vite npx vite 打包 npx vite build 预览打包后 ...
  • Vue
  • 2023-03-06
export //导出 文件 a.js export function a() { return 123; } export let b = 123; //导入 import {a...
  • Vue
  • 2023-03-06
添加原型属性方法:Vue.prototype 根目录下创建文件 utils/util.js main.js import util from 'utils/util' Vue.pr...
  • Vue
  • 2023-03-06
方式一: <!-- statusBarHeight 动态值 --> <div :style="{ height: `${statusBarHeight}px`,b...
  • Vue
  • 2023-03-06
vuex的基础使用 安装vuex npm install vuex --save //或者 yarn add vuex (推荐使用) main.js import Vue from...
  • Vue
  • 2023-03-06

关注我们的公众号

微信公众号