js将两个数的除数保留两位小数

function percentNum(num,num2) { return (Math.round(num / num2 * 10000) / 100.00 + "%"); //小数点后两位百分比 }
相关文章
相关标签/搜索