11 2022 档案
摘要:安装 vuex npm i vuex@next -S // 安装最新vuex store/index.js import { createStore } from 'vuex' export default createStore({ state: { login_index: 0, // 变量 }
阅读全文
摘要:NProgress.js 官网 https://ricostacruz.com/nprogress/ 安装: npm install nprogress 使用: // 引入NProgress进度条import NProgress from 'nprogress'import 'nprogress/n
阅读全文
摘要:<template> <el-form ref="formRef" :model="numberValidateForm" label-width="100px" class="demo-ruleForm" :rules="rules" > <el-form-item label="age" pro
阅读全文
摘要:Transition描述: “CSS的transition允许CSS的属性值在一定的时间区间内平滑地过渡。这种效果可以在鼠标单击、获得焦点、被点击或对元素任何改变中触发,并圆滑地以动画效果改变CSS的属性值。" 语法: transition : [ || || || [, [ || || || ]]
阅读全文
摘要:前端报错 cors 跨域 解决方法: 1. 安装 koa2-cors npm install koa2-cors 2. 在 app.js 里 加上: const Koa = require('koa') const app = new Koa() const cors = require('koa2
阅读全文
摘要:nodejs 运行下面代码: 报错: Error ENOENT : no such file or directory, open 'input.txt' 解决: var fs = require("fs"); let path = require('path'); // 引入path le
阅读全文