des阿松

导航

 

2022年1月12日

摘要: 1. yarn create vite 初始化创建项目 2. yarn add eslint -D 安装 eslint 3. eslint --init 初始化项目 1.选择 To check syntax and find problems 检查语法并发现问题 2. 选择 JavaScript m 阅读全文
posted @ 2022-01-12 16:36 des阿松 阅读(219) 评论(0) 推荐(0) 编辑
 

2020年12月22日

摘要: 1.创建vue脚手架项目;(话不多说 就是你要想打包的项目) 2:配置cnpm; npm install -g cnpm --registry=https://registry.npm.taobao.org; 3:vue add electron-builder 安装vue2 支持的 electro 阅读全文
posted @ 2020-12-22 10:35 des阿松 阅读(422) 评论(0) 推荐(0) 编辑
 

2020年10月27日

摘要: 第一种:纯css实现: .ripple { position: relative; overflow: hidden; } .ripple:after { content: ""; display: block; position: absolute; width: 100%; height: 10 阅读全文
posted @ 2020-10-27 20:34 des阿松 阅读(554) 评论(0) 推荐(0) 编辑
 
摘要: vue-cli插件配置 pluginOptions: { electronBuilder: { outputDir: 'dist-electron', //打包路径 chainWebpackMainProcess: (config) => { // Chain webpack config for 阅读全文
posted @ 2020-10-27 14:53 des阿松 阅读(1397) 评论(0) 推荐(0) 编辑
 

2020年10月21日

摘要: 1. 安装nvm node版本管理工具 和node ①.安装nvm管理工具再装node 执行 curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash 或: wget -qO- https 阅读全文
posted @ 2020-10-21 13:43 des阿松 阅读(399) 评论(0) 推荐(0) 编辑
 

2020年9月2日

摘要: 需求是一个vue组件封装 通过弹框填写相应属性(弹框做属性填写和选择 加属性预览) 点击确定后关闭弹框拿到返回的数据更新状态树 代码:vue部分 <template> <div class="fillDialog"> <div class="mask" @click="cancel"></div> 阅读全文
posted @ 2020-09-02 13:37 des阿松 阅读(746) 评论(0) 推荐(0) 编辑
 

2019年10月21日

摘要: <section class="signature"> <div class="signatureBox"> <div class="canvasBox" ref="canvasHW"> <canvas ref="canvasF" @touchstart='touchStart' @touchmove='touchMove' @touchend='touchEnd' @mousedown="mou 阅读全文
posted @ 2019-10-21 17:23 des阿松 阅读(954) 评论(0) 推荐(0) 编辑
 

2019年8月17日

摘要: 1、原则(1)多使用内存、缓存或者其他方法。(2)减少cpu占用,减少网络。 提升页面性能的方法有哪些? 一、加载页面和静态资源1、静态资源压缩合并,减少http请求。(1)减少http请求数量(2)减少请求资源大小2、非核心代码异步加载。3、静态资源缓存:通过链接名称控制缓存,只有内容改变的时候, 阅读全文
posted @ 2019-08-17 14:19 des阿松 阅读(1089) 评论(0) 推荐(0) 编辑
 
摘要: 9个区别,至少记住标记的4个1、get在浏览器回退时是无害的,而post会再次提交请求。(记住)2、get请求会被浏览器主动缓存,而post不会,除非手动设置。(记住)3、get产生的url地址可以被收藏,而post不可以。4、get请求只能进行url编码,而post支持多种编码方式。5、get请求 阅读全文
posted @ 2019-08-17 10:31 des阿松 阅读(130) 评论(0) 推荐(0) 编辑