有没有办法从这个 .ajax 获取警报所有的 HTML?
function testq() {
var acronyms = ["fubar", "snafu", "gnu"];
$.each(acronyms, function(index, element) {
$.ajax({
url: "https://encrypted.google.com/search?q=" + element,
dataType: "html",
success: function(html) {
var $container = $("#leftnav", html); // look for a specific element in the returned HTML
jAlert($container);
}
});
});
}
这只是为了调试。稍后我将修改从 .ajax 页面获取的信息。