如果哈登jqueryajax回调函数问题??第1个回答:火两重天2016-11-10TA获得超过1395

第1个回答:

火两重天2016-11-10TA获得超过1395个赞关注你用load()方法不行,你的回调中的me**又不是服务器返回的,当然是空的了。你用$.ajax()或$.get()或$.post()。用法:get:$.get("test.cgi",{name:"John",time:"2pm"},function(data){alert("DataLoaded:"+data);});--这里的data就是服务器返回的**post跟get差不多ajax:$.ajax({type:"POST",url:"some.php",data:"name=John&location=Boston",success:function(msg){alert("DataS**ed:"+msg);--msg就是服务器返回的**}});