我的Angular2 RC1代码适用于Chrome / FireFox。但是当谈到IE11时,浏览器会发出一堆Object doesn't support property or method 'keys'
错误。
我在index.html中有以下内容
<script src="https://cdnjs.cloudflare.com/ajax/libs/es6-shim/0.35.0/es6-sham.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/systemjs/0.19.25/system-polyfills.js"></script>
<script src="https://npmcdn.com/angular2@2.0.0-beta.17/es6/dev/src/testing/shims_for_IE.js"></script>
还应该添加什么来使Angular2 RC1与IE11一起使用?
这是错误明细
Error: TypeError: Object doesn't support property or method 'keys'
at Anonymous function (eval code:39:5)
at Anonymous function (eval code:38:1)
at Anonymous function (eval code:1:31)
at eval code (eval code:1:2)
Evaluating https://npmcdn.com/@angular/core@2.0.0-rc.1/src/facade/collection.js
Evaluating https://npmcdn.com/@angular/core@2.0.0-rc.1/src/facade/exception_handler.js
Evaluating https://npmcdn.com/@angular/core@2.0.0-rc.1/src/facade/exceptions.js
Evaluating https://npmcdn.com/@angular/core@2.0.0-rc.1/src/di/injector.js
Evaluating https://npmcdn.com/@angular/core@2.0.0-rc.1/src/di.js
Evaluating https://npmcdn.com/@angular/core@2.0.0-rc.1/index.js
Evaluating https://npmcdn.com/@angular/common@2.0.0-rc.1/src/pipes/async_pipe.js
Evaluating https://npmcdn.com/@angular/common@2.0.0-rc.1/src/pipes.js
Evaluating https://npmcdn.com/@angular/common@2.0.0-rc.1/index.js
Error loading http://localhost:3000/app/main.ts
{
[functions]: ,
__proto__: { },
description: "TypeError: Object doesn't support property or method 'keys'
message: "TypeError: Object doesn't support property or method 'keys'
name: "Error",
originalErr: { },
stack: null
}