如何用JavaScript 使小数点后面不足4位数补0,求大神解决! function formatnumber(value, num){ var a, b, c, i a = value.toString() b = a.indexOf(".") c =2023-04-07JavaScript190