摘要: 在webpack本地项目上安装时候报错,一般都由于网络问题。 设置淘宝镜像 : npm config set registry https://registry.npm.taobao.org 阅读全文
posted @ 2022-07-07 14:55 逆风-鬼刀 阅读(122) 评论(0) 推荐(0) 编辑
摘要: OS X 中,Cmd+Z 可以撤销,但是没找到撤销之后怎么恢复刚才撤销内容的快捷键。 command+shift+z 阅读全文
posted @ 2022-03-23 17:34 逆风-鬼刀 阅读(82) 评论(0) 推荐(0) 编辑
摘要: 如下代码,再 没有 添加 file.type 类型为 "" 时候,上传 .zip文件再某些环境中会被拦截,提示' 请上传正确格式的附件!' 。这是 upload 对zip 的type分解时候分解为 “” 。因该分解为 ’application/x-zip-compressed‘,这个时候把 “” 也 阅读全文
posted @ 2021-12-15 15:55 逆风-鬼刀 阅读(1133) 评论(0) 推荐(0) 编辑
摘要: ant 踩坑。 之 Cannot use 'in' operator to search for 'value' in undefined at getValuePropValue (util.js:29) 再使用多选 Select 组件时候报错 如图 原因是因为在 options 未渲染之前给 v 阅读全文
posted @ 2021-12-04 19:09 逆风-鬼刀 阅读(3335) 评论(0) 推荐(0) 编辑
摘要: 1、直接覆盖之前所有样式 var cssText = "z-index:99999990 !important;"; // 修改层级 $('.dimensionUnit').css("cssText",cssText) 2、在原来的样式基础上添加样式 var cssText = $("div.tes 阅读全文
posted @ 2021-09-18 14:43 逆风-鬼刀 阅读(990) 评论(0) 推荐(0) 编辑
摘要: 由于vscode默认并不识别ejs语法,所以使用ejs之后会有报错提示: 为了使代码可读性提高,需要下载 .ejs插件,使得vscode 可以识别出ejs语法 使用之后不再报错 阅读全文
posted @ 2021-09-06 11:14 逆风-鬼刀 阅读(583) 评论(0) 推荐(0) 编辑
摘要: was compiled against a different Node.js version using 使用不同的 Node.js 版本编译这个问题是在启动项目时候发现的,原因是 npm i 的时候电脑node版本是和 npm run start 的版本不一致。重新 npm install 就 阅读全文
posted @ 2021-09-02 11:19 逆风-鬼刀 阅读(1209) 评论(0) 推荐(0) 编辑
摘要: 转载于原文:https://www.cnblogs.com/chenqf/p/6386163.html 前言 Http 缓存机制作为 web 性能优化的重要手段,对于从事 Web 开发的同学们来说,应该是知识体系库中的一个基础环节,同时对于有志成为前端架构师的同学来说是必备的知识技能。但是对于很多前 阅读全文
posted @ 2020-04-27 17:31 逆风-鬼刀 阅读(270) 评论(1) 推荐(0) 编辑
摘要: 1. 查看所有的历史版本,获取你git的某个历史版本的id, git log2. 回退本地代码库:git reset --hard ID3. 推送到远程服务器:git push -f -u origin master4. 重新拉代码:git pull 阅读全文
posted @ 2019-12-02 16:21 逆风-鬼刀 阅读(33853) 评论(0) 推荐(3) 编辑
摘要: 一、点击终端--运行任务--选择tsc:监视 - tsconfig.json后,终端报出了如下错误:error TS5058: The specified path does not exist 在网上找到解决办法是因为vscode切换了默认终端,将默认终端修改为powershell 后再执行一遍就 阅读全文
posted @ 2019-11-28 14:28 逆风-鬼刀 阅读(1809) 评论(0) 推荐(0) 编辑