Skip to content

Commit 03989ec

Browse files
committed
modify space
1 parent dd787e1 commit 03989ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/docs/reference-javascript-environment-requirements.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ category: Reference
66
permalink: docs/javascript-environment-requirements.html
77
---
88

9-
React 16 依赖集合类型 [Map](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map)[Set](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set)。如果你要支持没有原生提供这些能力的老的浏览器或者设备(例如 IE < 11)或者不符合规范实现的(例如 IE 11),考虑在你的应用库中包含一个全局的 polyfill ,例如[core-js](https://github.com/zloirock/core-js)[babel-polyfill](https://babeljs.io/docs/usage/polyfill/)
9+
React 16 依赖集合类型 [Map](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map)[Set](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set) 。如果你要支持无法原生提供这些能力(例如 IE < 11)或实现不规范(例如 IE 11)的旧浏览器与设备,考虑在你的应用库中包含一个全局的 polyfill ,例如 [core-js](https://github.com/zloirock/core-js)[babel-polyfill](https://babeljs.io/docs/usage/polyfill/)
1010

1111
一个使用 core-js 支持老版浏览器的 React 16 的 polyfill 环境大致如下:
1212
```js
@@ -22,7 +22,7 @@ ReactDOM.render(
2222
);
2323
```
2424

25-
React 也依赖于 requestAnimationFrame(甚至包括测试环境)。
25+
React 也依赖于 `requestAnimationFrame`(甚至包括测试环境)。
2626
你可以使用 [raf](https://www.npmjs.com/package/raf) 包增添 `requestAnimationFrame`
2727

2828
```js

0 commit comments

Comments
 (0)