fix typos

This commit is contained in:
qianguyihao
2019-07-25 10:03:43 +08:00
parent 19d63147e3
commit 97a5fdc303
4 changed files with 14 additions and 28 deletions

View File

@@ -5,8 +5,6 @@
类型转换主要指将其他的数据类型转换为String、Number、Boolean。你会把某个数据类型转换成 null 或者 undefined 吗?不会,因为这样做,没有意义。
## 其他的简单类型 --> String
### 方法一:变量+"" 或者 变量+"abc"
@@ -15,7 +13,7 @@
举例如下:
```javascript
vat a = 123; // Number 类型
var a = 123; // Number 类型
console.log(a + ''); // 转换成 String 类型
console.log(a + 'haha'); // 转换成 String 类型
```