以下代码可放在一个js文件中,以便通用: //获取指定表单中指定标签对象 function getElements(formId, label) { var form = document.getElementById(formId);/* 获取表单引用(对象) */ var elements = []; var tagElements = form.getElementsByTagName(label);/* 获取表单中指定标签名的元素引用(对象)数组 */ for (var j = 0; j
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