06 2021 档案
摘要:mock.js官⽹:http://mockjs.com/ 安装命令:npm install --save mockjs scr>mock>index.ts import Mock from 'mockjs'; //设置请求延时 Mock.setup({ timeout:'200-2000',//单位
阅读全文
摘要:import { createApp } from 'vue' import App from './App.vue' import router from './router' import store from './store' import vant from 'vant'; import
阅读全文
摘要:"Print to console": { "prefix": "ts", "body": [ "<template>", "\t<div>", "\t</div>", "</template>", "<script lang=\"ts\">", "import {defineComponent}
阅读全文
摘要:npm配置国内镜像源 2、使⽤用npm全局安装typescript第3集:开始我们第⼀一个 TS程序简介:带领⼤大家体验⼀一下编写⼀一个ts程序1、安装vscode2、将ts⽂文件编译成js⽂文件进⼊入命令⾏行行:node -v这⾥里里使⽤用的是淘宝的镜像:npm config set regist
阅读全文
摘要:Express - 基于 Node.js 平台的 web 应用开发框架 - Express 中文文档 | Express 中文网 (expressjs.com.cn) Express 应用程序生成器 - Express 中文文档 | Express 中文网 (expressjs.com.cn) np
阅读全文
摘要:Cookie router.beforeEach((to,from,next)=>{ store.commit('setToken',Cookie.get('token')) if(store.state.token){ store.commit('changIsSignIn',1) } if(to
阅读全文
摘要:安装mavon-editor编辑器器 npm install mavon-editor --save Main.js中引⼊入编辑器器 import mavonEditor from 'mavon-editor'import 'mavon-editor/dist/css/index.css'Vue.u
阅读全文
摘要:vetur ,Auto Rename Tag ,chinese,Document This ,DotENV,Element UI Snippet,ESLint,ESLint Chinese Rules, Headwind,i18n Ally,Iconify IntelliSense,Less Int
阅读全文
摘要:npm install express --save npm install body-parser post请求包 // 引入body-parser模块,用来处理post请求参数 const bodyParser = require(‘body-parser’); // 处理post请求参数 ap
阅读全文
摘要:MySQL 8.0.19安装教程(windows 64位)_日日言谧-CSDN博客_mysql8安装 navicatsequal pro:下载地址https://sequelpro.com/test-builds或者https://dev.mysql.com/downloads/mysql/ htt
阅读全文
摘要:npm install -g nodemon
阅读全文
摘要:iTerm2 - macOS Terminal Replacement 终端神器 初始化项⽬ npm init -y 安装命令 npm i loadsh --save/cnpm i loadsh --save 下载速度慢可替换成淘宝镜像 npm install -g cnpm --registry=
阅读全文
摘要:import axios from 'axios' // login.hj.u2sy.cn改为login.test.u2sy.cn const url = 'http://login.test.u2sy.cn/dianshang/login/' // startDate=2020-01-01&end
阅读全文
摘要:http-service页面 import axios from 'axios'; //拦截器 axios.interceptors.response.use(function (response) { // 对响应数据做点什么 if (response.status == 200) { retur
阅读全文