giscafer / angular-webpack-es6

A boilerplate for Angular1.2.30 using ES6 and build with webpack,Compatible with IE 8
MIT License
4 stars 3 forks source link

IE8浏览器问题 #2

Open giscafer opened 7 years ago

giscafer commented 7 years ago

SCRIPT1010: 缺少标识符 常见原因

SCRIPT1010: 缺少标识符 ,一般是在IE下会出现这个问题。 出现这个问题的原因主要有以下几点:

解决方案,参考 http://www.jianshu.com/p/85a4319e3bf4 http://blog.csdn.net/a324539017/article/details/52824189 http://blog.csdn.net/gua_381091614/article/details/50498811

giscafer commented 7 years ago

已添加解决方案 https://github.com/giscafer/angular-webpack-es6/pull/3

giscafer commented 6 years ago

IE8自定义指令参考: https://stackoverflow.com/questions/18293118/angularui-compatible-browsers

网友提供兼容IE8的ng1.4版本 https://github.com/fergaldoyle/angular.js-ie8-builds

When using $q promise methods catch or finally in IE8 use bracket notation instead of dot notation. Same goes for $http delete method. IE8 does not like dot notation with these reserved words.

// no
promise.catch(function(){});

// yes
promise['catch'](function(){});