简体   繁体   English

大数值以指数格式显示 Kendo jquery 树列表

[英]Large number values shows in exponential format Kendo jquery Tree List

I am using kendo JQuery Tree List.我正在使用剑道 JQuery 树列表。 When very large number is coming from response then its displaying in Exponential format.当非常大的数字来自响应时,它会以指数格式显示。 I believe this is java script limitation for numbers having more than 15 digits.我相信这是超过 15 位数字的 Java 脚本限制。

Is there any workaround for the same.是否有相同的解决方法。 I would like to display the number as it is and should respect format我想按原样显示数字并且应该尊重格式

Dojo for the same: https://dojo.telerik.com/@amitdwivedi/uzecuDep Dojo 相同: https : //dojo.telerik.com/@amitdwivedi/uzecuDep

Kendo version for jquery : "@progress/kendo-ui": "^2018.2.530", jquery的剑道版本:“@progress/kendo-ui”:“^2018.2.530”,

JavaScript Number supports integers till 2^53 - 1. If you want a bigger number than that please try BigInt . JavaScript Number 支持直到 2^53 - 1 的整数。如果您想要更大的数字,请尝试 BigInt 。 You can write a very big number like this.你可以像这样写一个非常大的数字。

const theBiggestInt = BigInt(9007199254740991324324324324324);

More more you can refer this.更多更多你可以参考这个。 https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM