1

我在这里发布了一个示例 - http://jsfiddle.net/bizl/tSVHu/

这个简单数组的 long 值发生了变化——特别是以 9 或 7 结尾的数字被更改为 8(所以它不是很四舍五入)。我不明白为什么

 var a = [
          { "id": 13532811000001109, "name": "Dabigatran etexilate 110mg capsules",  "Group": "High Risk", "VPID": 13532811000001109   }, 
          { "id": 13532911000001104, "name": "Dabigatran etexilate 75mg capsules",  "Group": "High Risk", "VPID": 13532911000001104   },
          { "id": 13532811000001109, "name": "Pradaxa 110mg capsules (Boehringer Ingelheim Ltd)",  "Group": "High Risk", "VPID": 13532811000001109, "APID": 13505411000001109  },
          { "id": 13532911000001104, "name": "Pradaxa 75mg capsules (Boehringer Ingelheim Ltd)",  "Group": "High Risk", "VPID": 13532911000001104, "APID": 13504711000001102  }
          ];
4

1 回答 1

2

将您的整数转换为字符串,请参阅我上面的评论。

http://jsfiddle.net/tSVHu/2/

于 2012-08-31T11:30:19.653 回答