<div class="codetitle"> <span><a style="CURSOR: pointer" data="54108" class="copybut" id="copybut54108" onclick="doCopy('code54108')"><u>复제대码</u></a></span> 代码如下:</div> <div class="codebody" id="code54108"> <br>$("input[name=productNeedNum]").each(function (){ <br>var productNeedNum=document.getElementById("productNeedNum").value; <br>var NumTotal = productNeedNum; <br>document.getElementById("NumTotal").value=NumTotal; <br><br> </div>