随笔分类 - vue
摘要:什么是Monaco Editor? 微软之前有个项目叫做Monaco Workbench,后来这个项目变成了VSCode, 而Monaco Editor(下文简称monaco)就是从这个项目中成长出来的一个web编辑器, 他们很大一部分的代码(monaco-editor-core)都是共用的,所以m
阅读全文
摘要:import axios, { AxiosRequestConfig, AxiosRequestHeaders, AxiosResponse } from 'axios' import { IResponseData } from './types' import { ElMessage, ElLo
阅读全文
摘要:涉及知识点:vuex,mixins,keepalive,route,computed,watch 1./store/index.js : store: keepAliveList:[], mutations: setKeepAliveLists(state,keepName){ state.keep
阅读全文
摘要:vue 顶部页面加载进度条 : main.js //NProgress import NProgress from 'nprogress' import 'nprogress/nprogress.css' NProgress.configure({showSpinner: false}); NPro
阅读全文
摘要:宝塔linux + PM2 + Mysql + Redis + nginx + Koa2 + Vue + socket.io nginx: location / { try_files $uri $uri/ /index.html; } location /api{ proxy_pass http:
阅读全文
摘要:vue如何新建一个项目 https://www.jianshu.com/p/02b12c600c7b 自定义封装axios https://www.jianshu.com/p/a33ad66fd850 。。。待续
阅读全文
摘要:现代开发模式:vue/react。 20%的时间花在了表现层 传统开发模式:jquery。 80%的时间花在了表现层 MVC——数据、表现、行为分离 视图层(表现层)< >数据层 MVC、MVP、MVVMvue的核心是数据,vue是典型的MVVM结构 前台渲染 vs 后台渲染 前台渲染好处:降低服务
阅读全文