可能重复:
How to avoid scientific notation for large numbers in javascript?
Javascript: how to avoid scientific notation when displaying large unumber
我有这段代码:
var f = 1000000000000000000000; // 1e+21
var fstr = f.toString(); // return "1e+21"
但我不需要科学数字代表。我想在'fstr'变量中得到“1000000000000000000000”。我怎么能得到它?