摘要: 写法巨强的四舍五入的转换函数,如下:function round(v,e){ var t=1; for(;e>0;t*=10,e--); for(;e<0;t/=10,e++); return Math.round(v*t)/t;}在感叹JS强大的同时,也感叹一下... 阅读全文
posted @ 2010-08-20 16:59 邵珠庆 阅读(608) 评论(0) 推荐(0) 编辑