87,914
社区成员
发帖
与我相关
我的任务
分享
$("#Button2").click(function(event){
$("#div2").load("AjaxGetCityInfo.aspx", {"resultType": "htmlxyz"}, function(responseText, Status, xhr){
$("#div2").html("这里没效果" + responseText)
});
});
$("#divResult").load("../data/AjaxGetMethod.aspx",
{ "param": "btnAjaxCallBack_click" },
function(responseText, textStatus, XMLHttpRequest)
{
responseText = " Add in the CallBack Function! <br/>" + responseText;
$("#divResult").html(responseText); //或者: $(this).html(responseText);
});
});
$("#btnAjaxCallBack").click(function(event) { //发送Post请求, 返回后执行回调函数. $("#divResult").load("../data/AjaxGetMethod.aspx", { "param": "btnAjaxCallBack_click" }, function(responseText, textStatus, XMLHttpRequest) { responseText = " Add in the CallBack Function! <br/>" + responseText $("#divResult").html(responseText); //或者: $(this).html(responseText); }); });
responseText = " Add in the CallBack Function! <br/>" + responseText $("#divResult").html(responseText);