遇到的一些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离我们远去

龙丘居士亦可怜,谈空说有夜不眠。 忽闻河东狮子吼,拄杖落手心茫然。 多有画面感
原文地址:https://www.cnblogs.com/ybhome/p/11685752.html