- 博客(10)
- 收藏
- 关注
原创 windows关闭自动更新
windows关闭自动更新运行 gpedit.msc找到windows更新组件 配置自动更新禁用自动更新运行 gpedit.msc找到windows更新组件 配置自动更新禁用自动更新
2023-04-17 17:53:01
104
原创 vue打包项目时自动删除console.log
第一种安装插件npm install babel-plugin-transform-remove-console --save修改babel.config.js文件let transformRemoveConsolePlugin = []if (process.env.NODE_ENV === 'production') { transformRemoveConsolePlugin...
2020-04-08 15:01:51
980
原创 vue 路由
导航守卫全局前置守卫router.beforeEach 注册一个全局前置守卫:const router = new VueRouter({ ... })router.beforeEach((to, from, next) => { // ...})每个守卫方法接收三个参数:to: Route: 即将要进入的目标 路由对象from: Route: 当前导航正要离开的路...
2020-01-08 14:48:11
187
原创 koa与node.js开发实践
koa与node.js开发实践要点node.js入门npmkoa 基础(在基础视频中补充)koa 的安装与搭建Context对象ctx.request get请求post请求获取参数ctx.responsectx.statectx.cookiesctx.throwkoa 的中间件洋葱模型如果将多个中间件组合成一个单一的中便于重用或导出,可以使用koa-compose常用Koa中间件介绍koa-b...
2020-01-08 14:22:30
1652
原创 ckeditor4 +Wiris MathType + Mathjax 渲染 + Tax 公式编辑
文章目录vue使用ckeditor4下载ckeditor封装ckeditor组件ckeditor4保留空白标签及添加自定义样式ckeditor4中添加Wiris MathType插件下载Wiris配置Wiris插件Mathjax 渲染引入 js 插件封装mathjax应用mathjaxTax 公式编辑vue使用ckeditor4官网:https://ckeditor.com/ckeditor...
2020-01-08 14:20:14
4686
3
原创 vue 使用svg
vue 使用svg文件放置位置svg 文件放入vue 文件夹下的 src/assets/svg安装插件 vue2-svg-iconnpm install --save vue2-svg-icon使用main.js文件夹下import Icon from 'vue2-svg-icon/Icon.vue'Vue.component('icon', Icon)需要使用的页面中&...
2020-01-08 14:17:20
352
原创 React Less添加
一、react中添加Less/sass配置:第一步:先释放出react配置文件(释放出config和scripts目录)npm run eject// 报错gitgit add .git commit -m 'init'第二步:安装less或sass安装less: npm install less less-loader --save-dev第三步:配置webpack.con...
2020-01-08 14:16:23
119
原创 创建项目 按需加载antd eslint 配置
创建项目 按需加载antd eslint 配置react 项目 (在 create-react-app 中使用)创建reactantd按需加载antd自定义主题配置lesseslint 配置项目需要安装的插件配置详情vscode自动保存某些文件关闭eslint检查给某一行js代码关闭eslint检查eslint配置文件类型react 项目 (在 create-react-app 中使用)创建r...
2020-01-08 14:14:55
1148
原创 ts基础
文章目录let const解构赋值关于字符串的相关字符串模板字符串查找字符串是否以谁开头:字符串是否以谁结尾:重复字符串:判断浏览器填充字符串:函数相关函数的默认参数扩展运算符、Rest运算符: ... 展开数组箭头函数数组相关的东西ES5里面新增一些东西循环: for while ---> arr.forEach() arr.map()过滤 arr.filter()查找 ar...
2020-01-08 11:00:14
1002
原创 TypeScript 基础笔记
TypeScript 基础笔记安装TypeScript编译tsTypescript 开发工具 Vscode 自动编译.ts 文件数据类型布尔类型(boolean)数字类型(number)字符串类型(string)数组类型(array) ts中定义数组有两种方式元组类型(tuple) 属于数组的一种枚举类型(enum)任意类型(any)null 和 undefined 其他(never类型)数据...
2020-01-08 10:24:41
122
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人