首页 > IT职业 > IT图书 > ajax: jquery get request
//异步请求@人功能
function at(){
$.get('some.url.com/controller/action', function(resp){
if(resp!=null){//alert(resp);
tt_tips = new TextAreaAutoTips('post_text', {
debug: false,
data:resp
});
}
});
}
window.onload = at;
后端那边最后就是echo $data ;
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/4506/viewspace-2813348/ ,如需转载,请注明出处,否则将追究法律责任。