BigInt()
constructor returns a value of type
bigint
.
BigInt(value);
value
The numeric value of the object being created. May be a string or an integer.
注意
:
BigInt()
is not used with the
new
operator.
BigInt(123); // 123n
| 规范 |
|---|
|
ECMAScript (ECMA-262)
The definition of 'BigInt constructor' in that specification. |
| Desktop | Mobile | Server | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
BigInt()
构造函数
|
Chrome 67 | Edge 79 | Firefox 68 | IE No | Opera 54 | Safari No | WebView Android 67 | Chrome Android 67 | Firefox Android 68 | Opera Android 48 | Safari iOS No | Samsung Internet Android 9.0 | nodejs 10.4.0 |
完整支持
不支持
BigInt
class
BigInt
Function
Object
Object.prototype.__defineGetter__()
Object.prototype.__defineSetter__()
Object.prototype.__lookupGetter__()
Object.prototype.__lookupSetter__()
Object.prototype.hasOwnProperty()
Object.prototype.isPrototypeOf()
Object.prototype.propertyIsEnumerable()
Object.prototype.toLocaleString()
Object.prototype.toSource()
Object.prototype.toString()
Object.prototype.valueOf()
Object.setPrototypeOf()