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