From 77ca89ea00d2801534035be342012d08e1f12d49 Mon Sep 17 00:00:00 2001 From: Bryan Lee Date: Tue, 1 Mar 2022 21:00:39 +0800 Subject: update BigInt (#4327) --- files/zh-cn/web/javascript/reference/global_objects/bigint/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'files') diff --git a/files/zh-cn/web/javascript/reference/global_objects/bigint/index.html b/files/zh-cn/web/javascript/reference/global_objects/bigint/index.html index 1ac067ad98..552ecddc3f 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/bigint/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/bigint/index.html @@ -12,7 +12,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/BigInt

描述

-

可以用在一个整数字面量后面加 n 的方式定义一个 BigInt ,如:10n,或者调用函数BigInt()

+

可以用在一个整数字面量后面加 n 的方式定义一个 BigInt ,如:10n,或者调用函数 BigInt()(但不包含 new 运算符)并传递一个整数值或字符串值。

const theBiggestInt = 9007199254740991n;
 
-- 
cgit v1.2.3-54-g00ecf