我有以下内容:
$.ajax({
url: "info.html?" + $(this).attr('id'),
cache: false,
success: function(html){
$('#list-content').load("info.html?" + $(this).attr('id'));
}
})
在 info.html 中,如果我得到 document.href 并尝试解析它,我不会得到 info.html?...,而是得到包含窗口的 URL,即 index.html。问题,我如何获取'info.html?''后面的数据?这是好习惯吗?我还能如何传递数据以及如何从准备好的文档中的 info.html 中检索它?
还有一个问题,有没有办法在加载后访问 info.html 中的元素?
提前致谢。