//保留小数位
function formatNumber(val, fixed) {
    return new Number(val).toFixed(fixed);
}
posted on 2013-03-01 15:01  狐狸v  阅读(144)  评论(0编辑  收藏  举报