我正在使用 jquery ajax 加载带有另一个页面内容/html 的页面部分。\
$(function() {
app.xhr = $.ajax({
url: url,
dataType: "html",
cache: false,
success : function(html)
{
app.html = $(html);
setTimeout(function(){
app.insertPageData();
app.xhr = null;
},100)
},
error : function()
{
alert("Not Found")
}
})
insertPageData : function()
{
$('div.data').html(app.html.find(".content").html())
}
});
所以这是IE特有的问题。app.html 包含页面的 HTML,我需要从不与 IE 一起使用的页面中提取一个特定的 div html。
有没有其他方法可以从 HTML 中提取 HTML?
谢谢/古西姆龙