以下代码可放在一个js文件中,以便通用: //获取指定表单中指定标签对象 function getElements(formId, label) { var form = document.getElementById(formId);/* 获取表单引用(对象) */ var elements = []; var tagElements = form.getElementsByTagName(label);/* 获取表单中指定标签名的元素引用(对象)数组 */ for (var j = 0; j
// 得到一个表单里的全部信息function getFormQueryString() { var frmID=document.forms[0]; var i,queryString="",and=""; var item; // for each form's object var itemValue; // store each form object's value for(i=0;i<frmID.length;i++) { item=frmID[
var httpFormData = filterContext.HttpContext.Request.Form; var logContent = string.Empty; //获取url的 logContent = filterContext.HttpContext.Request.QueryString.ToString(); //获取表单的 if (httpFormData.Count > 0) { try { var formDataList = (from f in httpFo