ajax: jquery get request
<script>
//异步请求@人功能
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;
</script>
后端那边最后就是echo $data ;
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。