<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>