主要是頁(yè)面不兼容,
需要在模板中添加如下引用:
不支持ES5/ES6時(shí)增加如下引用:
<script src="https://cdnjs.cloudflare.com/ajax/libs/es5-shim/4.5.7/es5-shim.min.js"> </script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/es5-shim/4.5.7/es5-sham.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/json3/3.3.2/json3.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/es6-shim/0.34.2/es6-shim.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/es6-shim/0.34.2/es6-sham.min.js"> </script>
代碼中有使用React框架時(shí),在引用react和react-dom之前引入:
<script src="/Public/js/lib/react/polyfill.min.js"></script>
參考鏈接:
https://segmentfault.com/q/1010000011520125