Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
快速提问,如何在另一个页面中的“page-result”div 上显示搜索结果:
document.getElementById( 'page-result' ).innerHTML = xmlhttp.responseText;
任何的想法?!
你需要使用jquery吗?
$('#page-result').html( xmlhttp.responseText);
如果您需要在另一个窗口中进行操作,只需打开它
var newWindow = window.open( 'some params'); $(newWindow.document).find('#page-result')