var begin = "10000000000000000";
var end = "10000000000000000";
for(var i = obj[0].begin; i <= obj[0].end; i++) {
resArray.push(i);
}
由于精度判断出错,导致上面循环成为死循环。
将上面修改为(调用附件中begint.js脚本):
var begin = "10000000000000000";
var end = "10000000000000000";
for(var i = begin; bigint_cmp(i,end)<=0; i = bigint_plus(i, 1)) {
resArray.push(i.toString());
}