JavaScript比例值或者小数转换成保留两位(或多位)的百分数

((a/b)*100).toFixed(2)  + '%'

猜你喜欢

转载自blog.csdn.net/giscript/article/details/52994950
今日推荐