js通过同一名称创建表求和代码。

复制代码代码如下所示:
$(input{name=productNeedNum}).Each (function () {)
无功productneednum = document.getelementbyid(productneednum )的价值;
无功numtotal = productneednum;
document.getelementbyid(numtotal价值= numtotal);
});