js 数值格式化函数

2023-05-31,,

function ForDight(Dight,How){

var Dight = Math.round (Dight*Math.pow(,How))/Math.pow(,How); 

return Dight; 

}
//ForDight(Dight,How):数值格式化函数;
//Dight:要格式化的 数字;
//How::要保留的小数位数。

js 数值格式化函数的相关教程结束。

《js 数值格式化函数.doc》

下载本文的Word格式文档,以方便收藏与打印。