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

docs(number): edit number

This commit is contained in:
ruanyf 2017-03-29 14:53:21 +08:00
parent ccefd899e5
commit 7e2b0c709f
2 changed files with 3 additions and 2 deletions

View File

@ -120,6 +120,7 @@ input[type=search] {
height: 18px; height: 18px;
text-align: left; text-align: left;
border: none; border: none;
outline: none;
} }
input.searchButton { input.searchButton {

View File

@ -658,11 +658,11 @@ ES2016 新增了一个指数运算符(`**`)。
指数运算符可以与等号结合,形成一个新的赋值运算符(`**=`)。 指数运算符可以与等号结合,形成一个新的赋值运算符(`**=`)。
```javascript ```javascript
let a = 2; let a = 1.5;
a **= 2; a **= 2;
// 等同于 a = a * a; // 等同于 a = a * a;
let b = 3; let b = 4;
b **= 3; b **= 3;
// 等同于 b = b * b * b; // 等同于 b = b * b * b;
``` ```