我的代码使用 James Padolsey 的“jQuery 跨域模式”发出跨域请求以获取网页的源代码:https://github.com/padolsey/jQuery-Plugins/tree/master/cross-domain-ajax ;
然后它选择第一个表并将其附加到现有的 div。
但是附加的表格没有正确呈现。谁能看看这个 fiddle 并告诉我为什么?
最佳答案
你正在使用 jQuery.. 所以你可以通过将它变成一个 jQuery 对象来遍历它
function stripViewResponse() {
// Select table element
var fetchedTable = $(antwort).find('table')[0]; // find first table
// append table
$('#new').append(fetchedTable);
}
关于javascript - 浏览器不呈现表格元素 | jsFiddle 示例,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12751400/