2017-05-26 15:28:06 -04:00
|
|
|
|
# Browser support
|
2017-03-31 19:57:13 -04:00
|
|
|
|
|
2017-07-29 12:03:22 -04:00
|
|
|
|
# 浏览器支持
|
2017-03-31 19:57:13 -04:00
|
|
|
|
|
2017-02-22 13:09:39 -05:00
|
|
|
|
Angular supports most recent browsers. This includes the following specific versions:
|
|
|
|
|
|
2017-07-22 23:51:25 -04:00
|
|
|
|
Angular 支持大多数常用浏览器,包括下列版本:
|
|
|
|
|
|
2017-03-30 15:04:18 -04:00
|
|
|
|
|
2017-02-22 13:09:39 -05:00
|
|
|
|
<table>
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
|
|
<th>
|
|
|
|
|
Chrome
|
|
|
|
|
</th>
|
|
|
|
|
|
|
|
|
|
<th>
|
|
|
|
|
Firefox
|
|
|
|
|
</th>
|
|
|
|
|
|
|
|
|
|
<th>
|
|
|
|
|
Edge
|
|
|
|
|
</th>
|
|
|
|
|
|
|
|
|
|
<th>
|
|
|
|
|
IE
|
|
|
|
|
</th>
|
|
|
|
|
|
|
|
|
|
<th>
|
|
|
|
|
Safari
|
|
|
|
|
</th>
|
|
|
|
|
|
|
|
|
|
<th>
|
|
|
|
|
iOS
|
|
|
|
|
</th>
|
|
|
|
|
|
|
|
|
|
<th>
|
|
|
|
|
Android
|
|
|
|
|
</th>
|
|
|
|
|
|
|
|
|
|
<th>
|
2017-04-18 19:29:55 -04:00
|
|
|
|
IE Mobile
|
2017-02-22 13:09:39 -05:00
|
|
|
|
</th>
|
|
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
|
|
<td>
|
2017-07-22 23:51:25 -04:00
|
|
|
|
|
|
|
|
|
<p>
|
|
|
|
|
latest
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
<p>
|
|
|
|
|
最新版
|
|
|
|
|
</p>
|
|
|
|
|
|
2017-02-22 13:09:39 -05:00
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td>
|
2017-07-22 23:51:25 -04:00
|
|
|
|
|
|
|
|
|
<p>
|
|
|
|
|
latest
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
<p>
|
|
|
|
|
最新版
|
|
|
|
|
</p>
|
|
|
|
|
|
2017-02-22 13:09:39 -05:00
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
14
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
11
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
10
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
10
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td>
|
2017-06-07 13:39:04 -04:00
|
|
|
|
Nougat (7.0)<br>Marshmallow (6.0)
|
2017-02-22 13:09:39 -05:00
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
11
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
13
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
10
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
9
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
9
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
Lollipop<br>(5.0, 5.1)
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
9
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
8
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
8
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
KitKat<br>(4.4)
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
7
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
7
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
Jelly Bean<br>(4.1, 4.2, 4.3)
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|
|
|
2017-03-27 11:08:53 -04:00
|
|
|
|
|
2017-04-10 11:51:13 -04:00
|
|
|
|
<div class="l-sub-section">
|
2017-03-27 11:08:53 -04:00
|
|
|
|
|
2017-03-31 19:57:13 -04:00
|
|
|
|
|
|
|
|
|
|
2017-07-26 06:42:38 -04:00
|
|
|
|
Angular's continuous integration process runs unit tests of the framework on all of these browsers for every pull request,
|
|
|
|
|
using <a href="https://saucelabs.com/">SauceLabs</a> and
|
2017-04-24 14:23:45 -04:00
|
|
|
|
<a href="https://www.browserstack.com">Browserstack</a>.
|
2017-03-27 11:08:53 -04:00
|
|
|
|
|
2017-07-22 23:51:25 -04:00
|
|
|
|
Angular 在持续集成过程中,对每一个提交都会使用 <a href="https://saucelabs.com/" target="_blank">SauceLabs</a> 和
|
|
|
|
|
<a href="https://www.browserstack.com" target="_blank">Browserstack</a> 在上述所有浏览器上执行单元测试。
|
|
|
|
|
|
2017-03-27 11:08:53 -04:00
|
|
|
|
|
2017-04-10 11:51:13 -04:00
|
|
|
|
</div>
|
2017-03-27 11:08:53 -04:00
|
|
|
|
|
2017-03-31 19:57:13 -04:00
|
|
|
|
|
|
|
|
|
|
2017-02-22 13:09:39 -05:00
|
|
|
|
## Polyfills #
|
2017-07-22 23:51:25 -04:00
|
|
|
|
## 填充库 (polyfill) #
|
2017-02-22 13:09:39 -05:00
|
|
|
|
Angular is built on the latest standards of the web platform.
|
|
|
|
|
Targeting such a wide range of browsers is challenging because they do not support all features of modern browsers.
|
|
|
|
|
|
2017-07-22 23:51:25 -04:00
|
|
|
|
Angular 构建于 Web 平台的最新标准之上。
|
|
|
|
|
要支持这么多浏览器是一个不小的挑战,因为它们不支持现代浏览器的所有特性。
|
|
|
|
|
|
2017-03-11 08:44:25 -05:00
|
|
|
|
You can compensate by loading polyfill scripts ("polyfills") on the host web page (`index.html`)
|
2017-02-22 13:09:39 -05:00
|
|
|
|
that implement missing features in JavaScript.
|
|
|
|
|
|
2017-07-22 23:51:25 -04:00
|
|
|
|
你可以通过在宿主页面 (`index.html`) 中加载填充脚本 (“polyfills”) 来加以弥补,这些脚本实现了浏览器缺失的 JavaScript 特性。
|
|
|
|
|
|
|
|
|
|
|
2017-03-31 19:57:13 -04:00
|
|
|
|
<code-example path="quickstart/src/index.html" region="polyfills" title="quickstart/src/index.html" linenums="false">
|
2017-03-27 11:08:53 -04:00
|
|
|
|
|
|
|
|
|
</code-example>
|
2017-02-22 13:09:39 -05:00
|
|
|
|
|
2017-03-31 19:57:13 -04:00
|
|
|
|
|
|
|
|
|
|
2017-07-26 06:42:38 -04:00
|
|
|
|
A particular browser may require at least one polyfill to run _any_ Angular application.
|
2017-02-22 13:09:39 -05:00
|
|
|
|
You may need additional polyfills for specific features.
|
|
|
|
|
|
2017-07-22 23:51:25 -04:00
|
|
|
|
要运行 Angular 应用,某些浏览器可能需要至少一个填充库。除此之外,如果要支持某些特定的特性,你可能还需要另一些填充库。
|
|
|
|
|
|
2017-03-11 08:44:25 -05:00
|
|
|
|
The tables below can help you determine which polyfills to load, depending on the browsers you target and the features you use.
|
2017-02-22 13:09:39 -05:00
|
|
|
|
|
2017-07-22 23:51:25 -04:00
|
|
|
|
下表将帮你决定加载哪些填充库,具体取决于目标浏览器和要用到的特性。
|
|
|
|
|
|
2017-02-22 13:09:39 -05:00
|
|
|
|
|
2017-04-10 11:51:13 -04:00
|
|
|
|
<div class="alert is-important">
|
2017-02-22 13:09:39 -05:00
|
|
|
|
|
2017-03-31 19:57:13 -04:00
|
|
|
|
|
|
|
|
|
|
2017-03-11 08:44:25 -05:00
|
|
|
|
The suggested polyfills are the ones that run full Angular applications.
|
2017-02-22 13:09:39 -05:00
|
|
|
|
You may need additional polyfills to support features not covered by this list.
|
|
|
|
|
Note that polyfills cannot magically transform an old, slow browser into a modern, fast one.
|
|
|
|
|
|
2017-07-22 23:51:25 -04:00
|
|
|
|
这些建议的填充库是运行完整 Angular 应用所需的。
|
|
|
|
|
你可能还会需要另一些的填充库来支持没有出现在此列表中的哪些特性。
|
|
|
|
|
注意,这些填充库并没有神奇的魔力来把老旧、慢速的浏览器变成现代、快速的浏览器,它只是填充了 API。
|
|
|
|
|
|
2017-02-22 13:09:39 -05:00
|
|
|
|
|
2017-04-10 11:51:13 -04:00
|
|
|
|
</div>
|
2017-02-22 13:09:39 -05:00
|
|
|
|
|
2017-03-31 19:57:13 -04:00
|
|
|
|
|
|
|
|
|
|
2017-02-22 13:09:39 -05:00
|
|
|
|
### Mandatory polyfills ##
|
2017-07-22 23:51:25 -04:00
|
|
|
|
### 强制性填充库 ##
|
2017-02-22 13:09:39 -05:00
|
|
|
|
These are the polyfills required to run an Angular application on each supported browser:
|
|
|
|
|
|
2017-07-22 23:51:25 -04:00
|
|
|
|
下表是填充库对每个支持的浏览器都是需要的:
|
|
|
|
|
|
2017-03-30 15:04:18 -04:00
|
|
|
|
|
2017-02-22 13:09:39 -05:00
|
|
|
|
<table>
|
|
|
|
|
|
|
|
|
|
<tr style="vertical-align: top">
|
2017-07-26 06:42:38 -04:00
|
|
|
|
|
2017-02-22 13:09:39 -05:00
|
|
|
|
<th>
|
2017-07-22 23:51:25 -04:00
|
|
|
|
|
2017-08-06 01:37:25 -04:00
|
|
|
|
<p>
|
|
|
|
|
Browsers (Desktop & Mobile)
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
<p>
|
|
|
|
|
浏览器(桌面和移动)
|
|
|
|
|
</p>
|
2017-02-22 13:09:39 -05:00
|
|
|
|
</th>
|
|
|
|
|
|
|
|
|
|
<th>
|
2017-07-22 23:51:25 -04:00
|
|
|
|
|
2017-08-06 01:37:25 -04:00
|
|
|
|
<p>
|
|
|
|
|
Polyfills Required
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
<p>
|
|
|
|
|
需要的填充库
|
|
|
|
|
</p>
|
2017-07-22 23:51:25 -04:00
|
|
|
|
|
2017-02-22 13:09:39 -05:00
|
|
|
|
</th>
|
|
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
<tr style="vertical-align: top">
|
2017-07-26 06:42:38 -04:00
|
|
|
|
|
2017-02-22 13:09:39 -05:00
|
|
|
|
<td>
|
|
|
|
|
Chrome, Firefox, Edge, Safari 9+
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
None
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
<tr style="vertical-align: top">
|
2017-07-26 06:42:38 -04:00
|
|
|
|
|
2017-02-22 13:09:39 -05:00
|
|
|
|
<td>
|
|
|
|
|
Safari 7 & 8, IE10 & 11, Android 4.1+
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td>
|
2017-03-31 19:57:13 -04:00
|
|
|
|
|
|
|
|
|
|
2017-03-11 10:36:40 -05:00
|
|
|
|
[ES6](guide/browser-support#core-es6)
|
2017-02-22 13:09:39 -05:00
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
<tr style="vertical-align: top">
|
2017-07-26 06:42:38 -04:00
|
|
|
|
|
2017-02-22 13:09:39 -05:00
|
|
|
|
<td>
|
|
|
|
|
IE9
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td>
|
2017-03-31 19:57:13 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[ES6<br>classList](guide/browser-support#classlist)
|
|
|
|
|
|
2017-02-22 13:09:39 -05:00
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
</table>
|
|
|
|
|
|
2017-08-06 01:21:34 -04:00
|
|
|
|
|
|
|
|
|
|
2017-08-06 01:37:25 -04:00
|
|
|
|
### Optional browser features to polyfill ##
|
|
|
|
|
### 可选浏览器特性的填充库 ##
|
2017-02-22 13:09:39 -05:00
|
|
|
|
Some features of Angular may require additional polyfills.
|
|
|
|
|
|
2017-07-22 23:51:25 -04:00
|
|
|
|
有些 Angular 特性可能需要额外的填充库。
|
|
|
|
|
|
2017-02-22 13:09:39 -05:00
|
|
|
|
For example, the animations library relies on the standard web animation API, which is only available in Chrome and Firefox today.
|
|
|
|
|
You'll need a polyfill to use animations in other browsers.
|
|
|
|
|
|
2017-07-22 23:51:25 -04:00
|
|
|
|
例如,动画库依赖于标准的 web 动画 API,目前它只在 Chrome 和 Firefox 上可用。你可能需要一个填充库来在其它浏览器上使用动画功能。
|
|
|
|
|
|
2017-02-22 13:09:39 -05:00
|
|
|
|
Here are the features which may require additional polyfills:
|
|
|
|
|
|
2017-07-22 23:51:25 -04:00
|
|
|
|
下列特性可能需要更多填充库:
|
|
|
|
|
|
2017-03-30 15:04:18 -04:00
|
|
|
|
|
2017-02-22 13:09:39 -05:00
|
|
|
|
<table>
|
|
|
|
|
|
|
|
|
|
<tr style="vertical-align: top">
|
2017-07-22 23:51:25 -04:00
|
|
|
|
|
2017-02-22 13:09:39 -05:00
|
|
|
|
<th>
|
|
|
|
|
Feature
|
2017-07-29 12:03:22 -04:00
|
|
|
|
|
|
|
|
|
特性
|
|
|
|
|
|
2017-02-22 13:09:39 -05:00
|
|
|
|
</th>
|
|
|
|
|
|
|
|
|
|
<th>
|
|
|
|
|
Polyfill
|
2017-07-29 12:03:22 -04:00
|
|
|
|
|
|
|
|
|
填充库
|
2017-07-22 23:51:25 -04:00
|
|
|
|
|
2017-02-22 13:09:39 -05:00
|
|
|
|
</th>
|
|
|
|
|
|
|
|
|
|
<th style="width: 50%">
|
2017-07-29 12:03:22 -04:00
|
|
|
|
Browsers (Desktop & Mobile)
|
|
|
|
|
|
|
|
|
|
浏览器(桌面和移动)
|
|
|
|
|
|
2017-02-22 13:09:39 -05:00
|
|
|
|
</th>
|
|
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
<tr style="vertical-align: top">
|
2017-07-22 23:51:25 -04:00
|
|
|
|
|
2017-02-22 13:09:39 -05:00
|
|
|
|
<td>
|
2017-04-30 16:10:32 -04:00
|
|
|
|
[Animations](guide/animations)
|
2017-07-29 12:03:22 -04:00
|
|
|
|
|
|
|
|
|
[动画](guide/animations)
|
|
|
|
|
|
2017-02-22 13:09:39 -05:00
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td>
|
2017-03-31 19:57:13 -04:00
|
|
|
|
|
|
|
|
|
|
2017-03-11 10:36:40 -05:00
|
|
|
|
[Web Animations](guide/browser-support#web-animations)
|
2017-07-22 23:51:25 -04:00
|
|
|
|
|
|
|
|
|
[Web 动画](guide/browser-support#web-animations)
|
2017-02-22 13:09:39 -05:00
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td>
|
2017-07-22 23:51:25 -04:00
|
|
|
|
|
2017-02-22 13:09:39 -05:00
|
|
|
|
All but Chrome and Firefox<br>Not supported in IE9
|
2017-07-29 12:03:22 -04:00
|
|
|
|
|
|
|
|
|
除 Chrome 和 Firefox 外的所有,但不支持 IE9
|
2017-07-22 23:51:25 -04:00
|
|
|
|
|
2017-02-22 13:09:39 -05:00
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
<tr style="vertical-align: top">
|
2017-07-22 23:51:25 -04:00
|
|
|
|
|
2017-02-22 13:09:39 -05:00
|
|
|
|
<td>
|
2017-07-22 23:51:25 -04:00
|
|
|
|
|
2017-04-30 16:10:32 -04:00
|
|
|
|
[Date](api/common/DatePipe), [currency](api/common/CurrencyPipe), [decimal](api/common/DecimalPipe) and [percent](api/common/PercentPipe) pipes
|
2017-07-29 12:03:22 -04:00
|
|
|
|
|
|
|
|
|
[Date](api/common/DatePipe)、[currency](api/common/CurrencyPipe)、[decimal](api/common/DecimalPipe) 和 [percent](api/common/PercentPipe) 管道
|
2017-02-22 13:09:39 -05:00
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td>
|
2017-03-31 19:57:13 -04:00
|
|
|
|
|
|
|
|
|
|
2017-03-11 10:36:40 -05:00
|
|
|
|
[Intl API](guide/browser-support#intl)
|
2017-02-22 13:09:39 -05:00
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td>
|
2017-08-06 01:37:25 -04:00
|
|
|
|
<p>All but Chrome, Firefox, Edge, IE11 and Safari 10</p>
|
2017-07-29 12:03:22 -04:00
|
|
|
|
|
2017-08-06 01:37:25 -04:00
|
|
|
|
<p>除了 Chrome、Firefox、Edge、IE11 和 Safari 10 外的所有浏览器</p>
|
2017-07-22 23:51:25 -04:00
|
|
|
|
|
2017-02-22 13:09:39 -05:00
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
<tr style="vertical-align: top">
|
2017-07-22 23:51:25 -04:00
|
|
|
|
|
2017-02-22 13:09:39 -05:00
|
|
|
|
<td>
|
2017-07-22 23:51:25 -04:00
|
|
|
|
|
2017-08-06 01:37:25 -04:00
|
|
|
|
<p>[NgClass](api/common/NgClass) on SVG elements</p>
|
2017-07-29 12:03:22 -04:00
|
|
|
|
|
2017-08-06 01:37:25 -04:00
|
|
|
|
<p>在 SVG 元素上应用 [NgClass](api/common/NgClass)</p>
|
2017-02-22 13:09:39 -05:00
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td>
|
2017-07-26 06:42:38 -04:00
|
|
|
|
|
2017-03-31 19:57:13 -04:00
|
|
|
|
|
|
|
|
|
[classList](guide/browser-support#classlist)
|
2017-02-22 13:09:39 -05:00
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
IE10, IE11
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
<tr style="vertical-align: top">
|
2017-07-22 23:51:25 -04:00
|
|
|
|
|
2017-02-22 13:09:39 -05:00
|
|
|
|
<td>
|
2017-07-22 23:51:25 -04:00
|
|
|
|
|
2017-08-06 01:37:25 -04:00
|
|
|
|
<p>[Http](guide/http) when sending and receiving binary data</p>
|
2017-07-29 12:03:22 -04:00
|
|
|
|
|
2017-08-06 01:37:25 -04:00
|
|
|
|
<p>用 [Http](guide/http) 发送和接收二进制数据</p>
|
2017-07-29 12:03:22 -04:00
|
|
|
|
|
2017-02-22 13:09:39 -05:00
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td>
|
2017-03-31 19:57:13 -04:00
|
|
|
|
|
2017-07-26 06:42:38 -04:00
|
|
|
|
[Typed Array](guide/browser-support#typedarray)<br>
|
|
|
|
|
[Blob](guide/browser-support#blob)<br>
|
|
|
|
|
[FormData](guide/browser-support#formdata)
|
2017-02-22 13:09:39 -05:00
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
IE 9
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
</table>
|
|
|
|
|
|
2017-03-31 19:57:13 -04:00
|
|
|
|
|
|
|
|
|
|
2017-02-22 13:09:39 -05:00
|
|
|
|
### Suggested polyfills ##
|
2017-07-22 23:51:25 -04:00
|
|
|
|
### 建议的填充库 ##
|
2017-07-26 06:42:38 -04:00
|
|
|
|
Below are the polyfills which are used to test the framework itself. They are a good starting point for an application.
|
2017-02-22 13:09:39 -05:00
|
|
|
|
|
2017-07-22 23:51:25 -04:00
|
|
|
|
下表中是用来测试框架本身的填充库,它们是应用程序的优质起点。
|
|
|
|
|
|
2017-03-30 15:04:18 -04:00
|
|
|
|
|
2017-02-22 13:09:39 -05:00
|
|
|
|
<table>
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
|
|
<th>
|
2017-08-06 01:37:25 -04:00
|
|
|
|
|
|
|
|
|
<p>
|
2017-07-22 23:51:25 -04:00
|
|
|
|
Polyfill
|
2017-08-06 01:37:25 -04:00
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
<p>
|
2017-07-22 23:51:25 -04:00
|
|
|
|
填充库
|
2017-08-06 01:37:25 -04:00
|
|
|
|
</p>
|
|
|
|
|
|
2017-02-22 13:09:39 -05:00
|
|
|
|
</th>
|
|
|
|
|
|
|
|
|
|
<th>
|
2017-07-22 23:51:25 -04:00
|
|
|
|
|
2017-08-06 01:37:25 -04:00
|
|
|
|
<p>
|
2017-07-22 23:51:25 -04:00
|
|
|
|
Licence
|
2017-08-06 01:37:25 -04:00
|
|
|
|
</p>
|
2017-07-22 23:51:25 -04:00
|
|
|
|
|
2017-08-06 01:37:25 -04:00
|
|
|
|
<p>
|
2017-07-22 23:51:25 -04:00
|
|
|
|
授权方式
|
2017-08-06 01:37:25 -04:00
|
|
|
|
</p>
|
2017-07-22 23:51:25 -04:00
|
|
|
|
|
2017-02-22 13:09:39 -05:00
|
|
|
|
</th>
|
|
|
|
|
|
|
|
|
|
<th>
|
2017-07-22 23:51:25 -04:00
|
|
|
|
|
2017-08-06 01:37:25 -04:00
|
|
|
|
<p>
|
2017-07-22 23:51:25 -04:00
|
|
|
|
Size*
|
2017-08-06 01:37:25 -04:00
|
|
|
|
</p>
|
2017-07-22 23:51:25 -04:00
|
|
|
|
|
2017-08-06 01:37:25 -04:00
|
|
|
|
<p>
|
2017-07-22 23:51:25 -04:00
|
|
|
|
大小*
|
2017-08-06 01:37:25 -04:00
|
|
|
|
</p>
|
2017-07-22 23:51:25 -04:00
|
|
|
|
|
2017-02-22 13:09:39 -05:00
|
|
|
|
</th>
|
|
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
|
|
<td>
|
2017-04-24 14:23:45 -04:00
|
|
|
|
<a id='core-es6' href="https://github.com/zloirock/core-js">ES6</a>
|
2017-02-22 13:09:39 -05:00
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
MIT
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
27.4KB
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
|
|
<td>
|
2017-04-24 14:23:45 -04:00
|
|
|
|
<a id='classlist' href="https://github.com/eligrey/classList.js">classList</a>
|
2017-02-22 13:09:39 -05:00
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td>
|
2017-07-22 23:51:25 -04:00
|
|
|
|
|
2017-08-06 01:37:25 -04:00
|
|
|
|
<p>
|
2017-07-22 23:51:25 -04:00
|
|
|
|
Public domain
|
2017-08-06 01:37:25 -04:00
|
|
|
|
</p>
|
2017-07-22 23:51:25 -04:00
|
|
|
|
|
2017-08-06 01:37:25 -04:00
|
|
|
|
<p>
|
|
|
|
|
公共域
|
|
|
|
|
</p>
|
2017-07-22 23:51:25 -04:00
|
|
|
|
|
2017-02-22 13:09:39 -05:00
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
1KB
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
|
|
<td>
|
2017-04-24 14:23:45 -04:00
|
|
|
|
<a id='intl' href="https://github.com/andyearnshaw/Intl.js">Intl</a>
|
2017-02-22 13:09:39 -05:00
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td>
|
2017-03-11 08:44:25 -05:00
|
|
|
|
MIT / Unicode license
|
2017-02-22 13:09:39 -05:00
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
13.5KB
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
|
|
<td>
|
2017-07-29 12:03:22 -04:00
|
|
|
|
<a id='web-animations' href="https://github.com/web-animations/web-animations-js">Web Animations</a>
|
2017-02-22 13:09:39 -05:00
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
Apache
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
14.8KB
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
|
|
<td>
|
2017-04-24 14:23:45 -04:00
|
|
|
|
<a id='typedarray' href="https://github.com/inexorabletash/polyfill/blob/master/typedarray.js">Typed Array</a>
|
2017-02-22 13:09:39 -05:00
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
MIT
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
4KB
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
|
|
<td>
|
2017-04-24 14:23:45 -04:00
|
|
|
|
<a id='blob' href="https://github.com/eligrey/Blob.js">Blob</a>
|
2017-02-22 13:09:39 -05:00
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
MIT
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
1.3KB
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
|
|
<td>
|
2017-04-24 14:23:45 -04:00
|
|
|
|
<a id='formdata' href="https://github.com/francois2metz/html5-formdata">FormData</a>
|
2017-02-22 13:09:39 -05:00
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
MIT
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
0.4KB
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
</table>
|
|
|
|
|
|
2017-08-06 01:37:25 -04:00
|
|
|
|
|
2017-03-31 19:57:13 -04:00
|
|
|
|
|
2017-03-11 08:44:25 -05:00
|
|
|
|
\* Figures are for minified and gzipped code,
|
2017-08-06 01:21:34 -04:00
|
|
|
|
computed with the <a href="http://closure-compiler.appspot.com/home" >closure compiler</a>.
|
|
|
|
|
|
|
|
|
|
\* 这些指标测量的是最小化 (minify) 并且 gzip 过的代码,使用 <a href="http://closure-compiler.appspot.com/home" target="_blank">closure compiler</a>
|
2017-07-22 23:51:25 -04:00
|
|
|
|
计算出的结果。
|