可以使用toFixed函数,不过不兼容ie6可以下载兼容包https://github.com/es-shims/es5-shim/blob/master/es5-shim.js
posted on 2014-10-30 10:41 郑峰 阅读(109) 评论(0) 编辑 收藏 举报