return (Math.round(num / total * 10000) / 100.00 + "%")// 小数点后两位百分比
}
functionPercentage(number1,number2){return(Math.round(num/total*10000)/100.00+"%")//小数点后两位百分比}function percentNum(num, num2) {return (Math.round(num / num2 * 10000) / 100.00 + "%")//小数点后两位百分比
}
alert(percentNum(2,3))