1 m = 0 ;// 用于区分input // 新增一条录入 function AddTR(){ m += 1; var tableObject = document.getElementById("fpqk_tab"); var oTr = tableObject.rows[1]; var newTr = oTr.cloneNode(true); tableObject.getElementsByTagName("tbody")[0].appendChild(n…
使用方式: var json = form2Json("formId");//这里的参数是form表单的id值 form2json.js function form2Json(formName){ var form=document.getElementById(formName); var sb=new StringBuilder();var rcs=new Map(); for ( var i = 0; i < form.elements.length; i++){ var…
<script> //@创建表单方法 function post(URL, PARAMS) { var temp = document.createElement("form"); temp.action = URL; temp.method = "post"; temp.style.display = "none"; for (var x in PARAMS) { var opt=document.createElement(&qu…