function percentNum(num,num2) { return (Math.round(num / num2 * 10000) / 100.00 + "%"); //小数点后两位百分比 }