function getParams(formName) { var frmMain = document.getElementById(formName)?document.getElementById(formName):document.getElementsByName(formName)[0]; var keys=""; var values=""; var params=""; var textarea=new Array(); va…
let s =[]; $.each($('#formSearch input'),(m,n)=>{s.push(n)}); //示例获取表单所有 input 下滑线分割的 name 集合.set 去重, concat 平铺. let res = [...new Set( [].concat(...s.map(m=>m.split('_'))))]; //"", "Co", "Id", "Eq", "Ord…