Luolei 6 years ago
parent
commit
1bd81172ab
1 changed files with 9 additions and 2 deletions
  1. 9 2
      src/html/index.html

+ 9 - 2
src/html/index.html

@@ -5,7 +5,7 @@
   <meta name="viewport" content="width=device-width, initial-scale=1.0">
   <meta http-equiv="X-UA-Compatible" content="ie=edge">
   <title><%= htmlWebpackPlugin.options.title %></title>
-  <script>
+  <!-- <script>
     if (!Function.prototype.bind) {
       Function.prototype.bind = function(oThis) {
           if (typeof this !== "function") {
@@ -23,7 +23,14 @@
           return fBound;
       };
     }
-  </script>
+  </script> -->
+  
+  <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>
+  <script src="https://wzrd.in/standalone/es7-shim@latest"></script>
 </head>
 
 <body>