如何测试 BigInt 支持的功能?

问题描述 投票:0回答:1

我不熟悉现代 JS 和工具,甚至无法尝试某些东西。

参考资料:

https://github.com/tc39/proposal-bigint

javascript language-features arbitrary-precision ecma262
1个回答
0
投票

if('BigInt' in window)
(或
if(window.BigInt)
)应该就足够了。

© www.soinside.com 2019 - 2024. All rights reserved.