1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-24 18:32:22 +00:00

使未生效的语法高亮生效

This commit is contained in:
yuwei 2016-01-05 22:47:40 +08:00
parent de33b8cca6
commit d873e7b91d

View File

@ -89,7 +89,7 @@ const toArray = (() =>
`Array.from`还可以接受第二个参数,作用类似于数组的`map`方法,用来对每个元素进行处理,将处理后的值放入返回的数组。
```JavaScript
```javascript
Array.from(arrayLike, x => x * x);
// 等同于
Array.from(arrayLike).map(x => x * x);