随笔分类 -  常见报错

摘要:error - iframe/video 层级过高遮挡弹窗问题 参考资料 如何解决iframe遮挡住页面的遮罩层? 移动端 video播放器层级过高,遮挡住其他内容 项目案例 问题 优化弹窗被视频遮挡 测试iframe可解决视频遮挡 <!-- 视频iframe --> <iframe ref="ho 阅读全文
posted @ 2022-07-21 11:40 zc-lee 阅读(723) 评论(0) 推荐(4) 编辑
摘要:iframe 跨域 contentdocument返回null js如何获取跨域iframe 里面content 跨域报错: Blocked a frame with origin "http://xxx.com" from accessing a cross-origin frame 解决 跨域。 阅读全文
posted @ 2022-03-21 15:08 zc-lee 阅读(1411) 评论(0) 推荐(16) 编辑
摘要:error -MissingAllowOriginHeader 参考资料 原因:CORS 头缺少 ‘Access-Control-Allow-Origin’ 解决办法 解决办法 html head 被请求页面加上下面的代码,最好content填写域名 <meta http-equiv="Access 阅读全文
posted @ 2022-03-21 09:21 zc-lee 阅读(3892) 评论(0) 推荐(35) 编辑
摘要:error - webpack - Cannot use [chunkhash] for chunk ERROR in chunk runtime [entry] [name].[chunkhash].js Cannot use [chunkhash] for chunk in '[name].[c 阅读全文
posted @ 2022-02-16 09:24 zc-lee 阅读(174) 评论(0) 推荐(1) 编辑
摘要:error - vue mock 请求403 问题 mock http // 查询批量操作按钮 { url: '/creditcard-bank/basic/\.*/buttons', type: 'post', response: (config) => { let { pageNum, page 阅读全文
posted @ 2022-02-11 15:40 zc-lee 阅读(387) 评论(0) 推荐(2) 编辑
摘要:error - momentjs - Deprecation warning: value provided is not in a recognized RFC2822 or ISO format 问题 Deprecation warning: value provided is not in a 阅读全文
posted @ 2022-02-08 09:15 zc-lee 阅读(1152) 评论(0) 推荐(10) 编辑
摘要:vue- elementUi 分页偶数 在element分页中使用pager-count报错: Invalid prop: custom validator check failed for prop "pagerCount" 官网文档 解决 修改源码验证部分 pagerCount: { type: 阅读全文
posted @ 2022-01-28 16:20 zc-lee 阅读(148) 评论(0) 推荐(0) 编辑
摘要:error - html元素中莫名奇妙的1px间距 非 box-sizing 原因,尝试过 上移一像素,第二行又出现此问题 取消 overflow:hidden, 边距没了,但底部圆角被遮盖 给子元素底部也设置圆角,尝试解决圆角被遮盖问题,但无效 发现是背景图片层级权重问题,给图片父容器也添加圆角并 阅读全文
posted @ 2022-01-27 10:58 zc-lee 阅读(80) 评论(0) 推荐(0) 编辑
摘要:error - ie strict 模式下不允许分配到只读属性 原因 img.style = 'width:100%;height:100%;display:inline-block;position:relative;z-index:0;'; // strict 模式下不允许分配到只读属性 解决 阅读全文
posted @ 2022-01-27 09:59 zc-lee 阅读(232) 评论(0) 推荐(1) 编辑
摘要:Error - Vue - 解决 property should be a constructor VUE props支持多类型的写法 ,解决 property should be a constructor defaultActive: { type: [String, Number], //St 阅读全文
posted @ 2022-01-20 10:49 zc-lee 阅读(4442) 评论(0) 推荐(35) 编辑
摘要:sxjc - 电商 - 前台登录无法返回原页面问题 现象 原因 VUE_APP_SKIP_API错误配置导致重定向页面错误 重定向页面错误二次重定向 解决 正确配置 VUE_APP_SKIP_API = 'http://testyhyg.jcebid.com/back/#/' 页面登录跳转后台代码 阅读全文
posted @ 2021-12-09 14:39 zc-lee 阅读(62) 评论(0) 推荐(0) 编辑
摘要:vue - todo - 流文件下载空白问题 背景 2021-11-23 "mockjs": "^1.0.1-beta3", 问题描述 非responseType = 'blob'问题 非axios问题 问题定位 - 注释大法 仍然,说明问题在 webpack 配置 定时任务不再空白,说明问题在注释 阅读全文
posted @ 2021-11-23 00:52 zc-lee 阅读(215) 评论(0) 推荐(0) 编辑
摘要:error - git - git修改文件夹名大小写不生效 原因 - git默认是大小写不敏感 环境 git version 2.32.0.windows.1 vscode GitLens 问题描述 测试 vscode GitLens 提交 修改文件夹名称 test → Test 无记录,修改文件夹 阅读全文
posted @ 2021-11-11 10:33 zc-lee 阅读(1207) 评论(0) 推荐(9) 编辑
摘要:template 导致 slot 无效 无效 <el-upload> <template v-if="showFileList"> <i slot="default" class="el-icon-plus"></i> <div slot="file" slot-scope="{file}"> .. 阅读全文
posted @ 2021-11-10 11:40 zc-lee 阅读(1098) 评论(0) 推荐(17) 编辑
摘要:el-upload 获取上传失败时的返回信息 方案一 直接通过 JSON.parse() 去转换 err.message 而不是转换 err console.log(JSON.parse(err.message).msg) // 识别发票信息异常! 方案二 把错误信息转成字符串,然后去掉" Erro 阅读全文
posted @ 2021-11-08 16:44 zc-lee 阅读(1021) 评论(0) 推荐(9) 编辑
摘要:Users canvas本地图片跨域报错解决方案 1、设置跨域 添加跨域条件 crossorigin="anonymous" 前提是后端支持这个图片跨域 2、上面加了之后还是报错 如标题所示 你需要把你的项目放到服务器上面跑 或者自己搭建一个本地服务器 然后在访问你的html 阅读全文
posted @ 2021-09-03 10:41 zc-lee 阅读(1524) 评论(0) 推荐(10) 编辑
摘要:Failed to execute 'toBlob' on 'HTMLCanvasElement': Tainted canvases may not be exported. 原因就在于使用了跨域的图片,所以说是被污染的画布。 解决方案如下 1】为image请求添加跨域 var image = n 阅读全文
posted @ 2021-09-02 10:57 zc-lee 阅读(1569) 评论(0) 推荐(10) 编辑
摘要:Access to image at 'file:///G:/web/lee/img/pic.jpg' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for p 阅读全文
posted @ 2021-09-02 10:48 zc-lee 阅读(795) 评论(0) 推荐(11) 编辑
摘要:cdn 引入 Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the "name" option. // 报错 <sc 阅读全文
posted @ 2021-09-02 10:45 zc-lee 阅读(2310) 评论(0) 推荐(37) 编辑

点击右上角即可分享
微信分享提示