function toPercent(num, total) { return (Math.round(num / total * 10000) / 100.00 + "%");// 小数点后两位百分比 }
js求两个数的百分比
猜你喜欢
转载自www.cnblogs.com/wangxiaoyan/p/9328645.html
今日推荐
周排行