js獲取表單提交的數(shù)據(jù) js獲取form表單數(shù)據(jù)
~function exitsCheck(str){if(jsonXmlHttpSupport){var sUrl=“操作?str=“編碼器組件(str)var jsonRequest=new XML
~function exitsCheck(str){if(jsonXmlHttpSupport){var sUrl=“操作?str=“編碼器組件(str)var jsonRequest=new XMLHttpRequest()jsonRequest.onreadystatechange=函數(shù)(){如果(jsonRequest.readyState文件==4){var jsonResult=eval(“”jsonRequest.responseText文件)如果jsonResult.jsonMsg文件啊!=0){alert(“xxxxx”)return}文檔。[0]。操作=“<%=請求.getContextPath()%>/xxxxxxx操作“文檔。[0].提交()}jsonRequest。(“后”sUrl)jsonRequest.send發(fā)送(零)