【发布时间】:2016-05-02 14:34:40
【问题描述】:
尝试使用 jquery load() 函数,但似乎对我不起作用
$('#result').load('http://michaelschauffler.com/test.html', function(request, status, xhr){
if (status == "error"){ // and it is
// xhr.status is 0 and xhr.statusTest is error
// then what is the error.
}
});
这并不是我真正想要做的,但我似乎无法找出为什么事情似乎不像我找到的例子那样对我有用。 http://jsfiddle.net/webdevem/vxdHs/
所以我的目标页面上可能缺少一些东西。
【问题讨论】: