function pass() { $.ajax({ type: "POST",//方法 url: "/e/mimi/gzhide/pass.php?classid=48&id=102278", data: $('#form1').serialize(), async:true, dataType:"json", success:function(data){ //提交成功 var result=document.getElementById("gzhide"); result.innerHTML=data['text']; return false; }, error : function(data) { //提交失败 var result=document.getElementById("gzhide"); result.innerHTML=data['text']; return false; } }); } function getCookie(cname){ var name = cname + "="; var ca = document.cookie.split(';'); for(var i=0; i