在UserList.jsp頁(yè)面中的Ajax調用:
function getMessage(id){
//AJax調用
$.ajax({
type: "POST",
url: "/UserAction!getAjaxMessage.action",
data: "id="+id,
dataType:"json",
success: function(rt){
if(rt.rtn == "1"){
//相應處理
$("#testAjax").html(rt.message);
}else{
$("#testAjax").html("獲取失敗");
}
}
});
}
自我觀(guān)點(diǎn):其實(shí)Ajax,就是js的一種。
本站僅提供存儲服務(wù),所有內容均由用戶(hù)發(fā)布,如發(fā)現有害或侵權內容,請
點(diǎn)擊舉報。