<div class="codetitle"> <span><a style="CURSOR: pointer" data="15125" class="copybut" id="copybut15125" onclick="doCopy('code15125')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code15125"> <br>///计算两个整数的百分比值 <br>function GetPercent(num, total) { <br>num = parseFloat(num); <br>total = parseFloat(total); <br>if (isNaN(num) || isNaN(total)) { <br>return "-"; <br>} <br>return total } <br> </div>