Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8644269

Browse files
authored
ES2020 又新增了 BigInt 基本数据类型 (xcatliu#191)
添加 BigInt 基本数据类型
1 parent 0bb2b87 commit 8644269

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

basics/primitive-data-types.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
JavaScript 的类型分为两种:原始数据类型([Primitive data types][])和对象类型(Object types)。
44

5-
原始数据类型包括:布尔值、数值、字符串、`null``undefined` 以及 [ES6 中的新类型 `Symbol`][]
5+
原始数据类型包括:布尔值、数值、字符串、`null``undefined` 以及 ES6 中的新类型 [`Symbol`][][`BigInt`][]
66

77
本节主要介绍**前五种**原始数据类型在 TypeScript 中的应用。
88

@@ -150,6 +150,7 @@ let num: number = u;
150150
- [ES6 中的模板字符串][]
151151

152152
[Primitive data types]: https://developer.mozilla.org/en-US/docs/Glossary/Primitive
153-
[ES6 中的新类型 `Symbol`]: http://es6.ruanyifeng.com/#docs/symbol
153+
[`Symbol`]: http://es6.ruanyifeng.com/#docs/symbol
154+
[`BigInt`]: https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/BigInt
154155
[ES6 中的二进制和八进制表示法]: http://es6.ruanyifeng.com/#docs/number#二进制和八进制表示法
155156
[ES6 中的模板字符串]: http://es6.ruanyifeng.com/#docs/string#模板字符串

0 commit comments

Comments
 (0)