遇到的一些ie的兼容问题

1.函数不能使用简写的形势如:

methods:{
    initPage(){

    },
    initPage : function(){

    }用这种写法
}    

2.计时器不能使用箭头函数

3.script标签最好放在body之后

4.获取元素时,多个元素其length值与Chrome等浏览器的length值不同,注意调整等适合自己的获取长度方法

5.Templates should only be responsible for mapping the state to the UI. Avoid placing tags with side-effects in your templates, such as <script>, as they will not be parsed.

这个ie的报错一般是标签闭合有问题

愿兼容ie离我们远去

posted @ 2019-10-16 15:25  忽闻河东狮子吼  阅读(156)  评论(0编辑  收藏  举报