且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在JavaScript中将大整数转换为十六进制字符串

更新时间:2022-04-20 05:20:12

有问题的数字在javascript的最大整数之上。但是,你可以使用字符串来处理这么大的数字,并且有一些插件可以帮助你做到这一点。在这种情况下一个特别有用的例子是 hex2dec

The numbers in question are above javascript's largest integer. However, you can work with such large numbers by strings and there are some plugins which can help you do this. An example which is particularly useful in this circumstance is hex2dec