摘要:
1、tofix(n)这个可以得到n位小数 但如果想要兼容的话 还是用字符串的截取来做吧function changeTwoDecimal_f(x) { var f_x = parseFloat(x); if (isNaN(f_x)) { //alert('function:chan... 阅读全文
posted @ 2014-06-05 17:12
堂Di
阅读(487)
评论(0)
推荐(0)
|
摘要:
1、tofix(n)这个可以得到n位小数 但如果想要兼容的话 还是用字符串的截取来做吧function changeTwoDecimal_f(x) { var f_x = parseFloat(x); if (isNaN(f_x)) { //alert('function:chan... 阅读全文
posted @ 2014-06-05 17:12
堂Di
阅读(487)
评论(0)
推荐(0)
|