IE兼容问题
ʚ梅梅ɞ
这个作者很懒,什么都没留下…
展开
-
IE11中AES加密导致报错缺少 ‘)‘
IE11报错详情解析通过查找问题,发现问题发生在crypto-js这个包中因为只有在ie中才报这个错误,导致页面加载不出来,才想是这个包中有语法是ie不兼容的解决让这个包进行babel转译chainWebpack(config) { // 为了兼容IE,crypto-js和部分node_modules下的js要经过babel的转译 config.module .rule('js') .exclude.clear().end() .include原创 2021-10-29 16:52:42 · 983 阅读 · 10 评论 -
IE11中flex布局兼容问题总结
flex:1解析问题原因://在谷歌中flex:1;会解析为flex-grow:1;flex-shrink:1;flex-basis:0%;//在IE中被解析为flex-grow:1;flex-shrink:1;flex-basis:0px;解决:将flex:1; 更改为flex: 1 1 auto;父容器中flex-direction:column 和 align-items:center,这俩属性同时存在, 子容器内容过多会溢出容器原因:IE中flex-shrink 的默认值原创 2021-07-27 11:30:58 · 2595 阅读 · 0 评论 -
修复IE11无法打开授权页面的问题(chome正常)
场景登录成功之后,如果产品没有授权,要跳转到授权页面,但是在ie中跳转不过去,原因是因为授权页面用到了公司的业务组件库,打包时里面使用到箭头函数没有进行转译解决办法在vue.config.js里面加入转译 // 为了兼容IE,部分node_modules下的js要经过babel的转译 config.module .rule('js') .exclude.clear().end() .include .add(resolve('src')) .add(reso原创 2021-07-16 17:20:52 · 283 阅读 · 0 评论 -
IE11 el-menu鼠标滑过菜单报错:Error in v-on handler: “TypeError: 对象不支持此操作“和[vue-router] uncaught error during
情况使用vue的el-menu组件,在chome中无报错,在IE11中报有两个错误[vue-router] uncaught error duringError in v-on handler: “TypeError: 对象不支持此操作”分析考虑到element-ui版本更新或者重新通过npm install安装包时,写入node_modules\element-ui\lib\element-ui.common.js里面的patch会失效。解决办法在 /public/js/下创建pol原创 2021-07-16 17:13:26 · 395 阅读 · 0 评论