gistfile1.txt function ajaxRequest(opurl,formname,reviewType){ $.ajax({ type:'post', url:opurl, data:$('#'+formname).serialize(), dataType:'jsonp', jsonp:"jsoncallback", success:function(data){ var flag = data.flag; var msg = data.msg; var
function ajaxRequest(opurl,formname,reviewType){ $.ajax({ type:'post', url:opurl, data:$('#'+formname).serialize(), dataType:'jsonp', jsonp:"jsoncallback", success:function(data){ var flag = data.flag; var msg = data.msg; var flag = data.flag var comId =data.comId; if(flag=='T'){ alert('信息提交成功!'); }else{ alert(msg); } if(reviewType=='zczx'){ $("#userCname").val(''); $("#userPhone").val(''); $("#comTitle").val(''); $("#context").val(''); } if(reviewType=='wybm'){ $("#orgName").val(''); $("#socialCreditCode").val(''); $("#scopeBusiness").val(''); $("#legalPerson").val(''); $("#telephone").val(''); $("#contactName").val(''); $("#contatTelphone").val(''); $("#contactEmail").val(''); $("#addressZipcode").val(''); window.location.href="/sys/baoming.shtml?comId="+comId+"&backurl="+window.location.href; } if(reviewType=='upwybm'&& flag=='T'){ $("#registeredAddress").val(''); $("#registeredCapital").val(''); $("#legalPersonCategory").val(''); window.location.href=backurl; } $("#rand").val(''); //刷新验证码 document.getElementById('timecode').src='/image.jsp?temp='+ (new Date().getTime().toString(36)); }, error:function(){ alert("提交失败!"); } }); }