- 博客(16)
- 收藏
- 关注
原创 vue前端打包更新后客户端自动更新
vue单页面网页端项目前言(缓存)项目之前已经通过webpack打包的时候都会把静态资源文件名加个哈希后缀,且index.html中引入的时候也加了相应的哈希后缀,这样每次打包都会是最新的,index.html文件也通过Nginx添加了不缓存配置场景需求已经上线的项目要配合后端更新前端逻辑、修改某个功能。根据前面的说的客户新进入的不用考虑肯定是最新的代码,问题就出现在正在使用网站的用户代码没有更新过来。方法简单粗暴让用户客户端刷新页面。分享三种用过的方法websocket.
2021-11-08 17:24:11 5935
原创 element-ui 改变 SCSS 变量 或者 自定义主题 引入后样式重复问题
如何自定义主题关于element 如何自定义主题查看-->官网<--有详细介绍去除重复样式在css文件的地方下载npm插件npm install css-purge -g 然后运行下面代码css-purge -i myFile.css -o myFile_purged.css i代表输入文件的名称,o代表输出文件的名称例如:需要转换的文件名是index.css 去重后生成的文件名是newindex.csscss-purge -i index.cs
2021-07-27 11:40:54 1193
原创 uniapp 打包或者运行实机 Error: undefined:4425:2: missing ‘}‘,Error: undefined:4442:3: missing ‘}‘
如遇到使用uniapp 打包或者运行实机报错18:09:59.143 Module Error (from ./node_modules/@dcloudio/vue-cli-plugin-hbuilderx/packages/webpack-uni-nvue-loader/lib/style.js): 18:09:59.144 (Emitted value instead of an instance of Error) Error: undefined:4425:2: missing '}',E
2020-08-25 10:35:45 1244 1
原创 gitlab上传
???? ???????????????? ???????????? ???????????????????? ???????????????????????????????? ????????????????????// 提交到本地版本库git add .// 添加当前修改的命名git commit -m "Initial commit"// 从终端获取最新的版本避免等等自己提交的时候冲突 master 是分支git pull origin master// 把本地库提交到终端 并指定
2019-01-08 10:06:17 84
原创 studio Execution failed for task ‘:app:compileDebugJavaWithJavac‘.
studio 更新Execution failed for task ':app:compileDebugJavaWithJavac
2023-02-10 14:44:32 1054
原创 vue demo结构使用jspdf打印的三种方法 html2canvas,svg, jspdf的api画线
这其实是第二版功能,第一版是使用html2Canvas来再进行jspdf使用,很方便,但是性能很差,遍历的时候每次都会下载全页面的静态资源导致内存爆炸直接挂掉。
2022-09-20 12:04:00 918
原创 Android Studio创建AVD并提示“An error occurred while creating the AVD. See idea.log for details.“
闲着没事干升级一下flutter插件 然后想启动模拟器发现说我Emulator没有 我以为是我之前创建的模拟器有问题就删除了然后创建的时候这种:然后就得去看idea.log 文件里面有详细内容我的在C:\Users\admin\AppData\Local\Google\AndroidStudio2021.1\log点开看到说'mksdcard.exe' is missing from the SDK tools folder.然后在百度上查没有相关资料就去google上查..
2022-03-07 12:26:14 8860 1
原创 vue使用jsPlumb做流程(网站笔记)
https://github.com/Mr-China-Chester/jsplumb-vue-workFlow
2021-08-19 17:37:09 650
原创 手机端目录左右滑块并跳相应位置
参考地址<div class="Mobel_Top_lr"> <div class="Mobel_Top_lr_ALL"> <div class="Mobel_Top_L"> <img src="https://img-1252908129.file.myqcloud.com/img/Mobel_lr.png" alt="...
2019-09-18 16:49:56 176
原创 兼容当页面在微信浏览器的获取元素属性data的时候undefined
getDataset = function(ele){// function getDataset(ele){ if(ele.dataset){ return ele.dataset; }else{ var attrs = ele.attributes,//元素的属性集合 dataset = {}, ...
2019-09-18 16:37:29 231
原创 计算机毕业论文--相关网站
https://wenku.baidu.com/view/977e64312379168884868762caaedd3383c4b581.htmlhttp://lunwenfb.mz2019.cn/fanwen/computer/hulianwangjishu/http://www.zhazhi.com/lunwen/gllw/wzjslw/http://www.zhazhi.com...
2019-09-04 11:05:08 559
原创 小程序授权链接收藏笔记
https://blog.csdn.net/qq_29246395/article/details/77567365https://developers.weixin.qq.com/miniprogram/dev/component/open-data.htmlhttps://blog.csdn.net/guochanof/article/details/80513945https:/...
2019-09-04 10:53:33 198
原创 vue 随便笔记
Vue 项目性能优化https://juejin.im/post/5d548b83f265da03ab42471dvue引入sass全局变量https://blog.csdn.net/qq_27868533/article/details/79651659https://blog.csdn.net/haochangdi123/article/details/80798813ht...
2019-09-04 10:44:50 101
原创 通用软件下载
Adobe Photoshop CC(PSCC)官方下载及破解补丁https://jingyan.baidu.com/article/c35dbcb0eb1b428917fcbc11.htmlhttp://www.downza.cn/soft/213145.htmlhttp://xiazai.zol.com.cn/detail/15/146785.shtml...
2019-09-04 10:38:53 121
原创 超级多前端代码js/css锦集--笔记
js禁止浏览器默认行为$('body')[0].addEventListener("touchmove",Aniu_touchend,{passive: false});function Aniu_touchend(e) { e.preventDefault(); }$('body')[0].removeEventListener('touchmove',Aniu_...
2019-09-02 17:39:39 193
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人