我不知道为什么会出现 js 错误
ResponseText is not defined
在我的回调函数()中
$("#orderListContainer").load("OrderHandler.ashx?action=" + action, function(responseText, textStatus, XMLHttpRequest)
{
alert(ResponseText);
});
最佳答案
这个:
alert(ResponseText);
应该是:
alert(responseText);
请注意小写的 r
,因为这是您命名参数的方式。
关于jquery - 来自 .load() 的响应文本未触发警报,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3159562/