首页 > TAG信息列表 > nZero

JS 常见的数据操作方法

//四舍五入 function round2(number, fractionDigits) { with (Math) { return round(number * pow(10, fractionDigits)) / pow(10, fractionDigits); } } // 空替换0 function fun_FillStr(Str) { Str = Str.replace(/(^\s*)|(\s*$)/g, "") == &q