环境:基于vue-cli的element- ui的项目

在其他浏览器正常。在ie中报错的代码:

<el-select filterable clearable v-model="Form.PlaceProvId" placeholder="选项" filterable clearable style="width:100px" @change="selChange($event)">

报错提示:

报错原因:标签中多定义了  filterable clearable这属性。重复定义在ie中报错。 

解决办法: 删除重复定义。

总结:ie中报这个错是ie的js中的严格模式。如报错提示中的提示(strict 模式下不允许一个属性有多个定义)。报这个错,优先查找重复定义的东西。

GitHub 加速计划 / eleme / element
54.06 K
14.63 K
下载
A Vue.js 2.0 UI Toolkit for Web
最近提交(Master分支:1 个月前 )
c345bb45 5 个月前
a07f3a59 * Update transition.md * Update table.md * Update transition.md * Update table.md * Update transition.md * Update table.md * Update table.md * Update transition.md * Update popover.md 5 个月前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐