随笔分类 -  bug

用来记录每天遇到的bug
摘要:如下代码,再 没有 添加 file.type 类型为 "" 时候,上传 .zip文件再某些环境中会被拦截,提示' 请上传正确格式的附件!' 。这是 upload 对zip 的type分解时候分解为 “” 。因该分解为 ’application/x-zip-compressed‘,这个时候把 “” 也 阅读全文
posted @ 2021-12-15 15:55 逆风-鬼刀 阅读(1482) 评论(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 逆风-鬼刀 阅读(3703) 评论(0) 推荐(0)
摘要:1、直接覆盖之前所有样式 var cssText = "z-index:99999990 !important;"; // 修改层级 $('.dimensionUnit').css("cssText",cssText) 2、在原来的样式基础上添加样式 var cssText = $("div.tes 阅读全文
posted @ 2021-09-18 14:43 逆风-鬼刀 阅读(1166) 评论(0) 推荐(0)
摘要:由于vscode默认并不识别ejs语法,所以使用ejs之后会有报错提示: 为了使代码可读性提高,需要下载 .ejs插件,使得vscode 可以识别出ejs语法 使用之后不再报错 阅读全文
posted @ 2021-09-06 11:14 逆风-鬼刀 阅读(708) 评论(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 逆风-鬼刀 阅读(1411) 评论(0) 推荐(0)