Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
army8735 committed May 11, 2015
1 parent d490f82 commit 0f7c43a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,12 +161,12 @@ function() {
```
> 示例中`let`和块级作用域尚未处理,后面会提到。
函数和var的性质一样,除了迁移还会改写为var形式
函数和var的性质一样:
```js
{function a(){}}
```
```js
var a;{a=function (){}}
!function(){function a(){}}();
```

### {}块级作用域
Expand Down Expand Up @@ -265,7 +265,7 @@ var codeUnits = [...a];
```
```js
var codeUnits = [].concat("this is a string".split(""));
var codeUnits = [].concat(Object.prototype.toString.call(a)=="[object String]"?a.split(""):a);
var codeUnits = [].concat(Array.from(a));
```

### template模板
Expand Down

0 comments on commit 0f7c43a

Please sign in to comment.