1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-29 05:42:20 +00:00

修正笔误

This commit is contained in:
erniu 2016-05-12 18:02:05 +08:00
parent 7f66176c1f
commit 8bf0e77b00

View File

@ -24,7 +24,7 @@ ES6提供了二进制和八进制数值的新的写法分别用前缀`0b`
})() // Uncaught SyntaxError: Octal literals are not allowed in strict mode.
```
如果要将`0b``0x`前缀的字符串数值转为十进制,要使用`Number`方法。
如果要将`0b``0o`前缀的字符串数值转为十进制,要使用`Number`方法。
```javascript
Number('0b111') // 7