我需要在不使用iframe元素的情况下将响应式网站加载到HTML页面中的div中.
我试过这个链接 ; 它适用于单页网址,我在脚本中提到过.
$('#mydiv').load('http://localhost/qa/ask#external-div', function(response, status, xhr) {
if (status == "error") {
var msg = "Sorry but there was an error: ";
alert(msg + xhr.status + " " + xhr.statusText);
}
});
Run Code Online (Sandbox Code Playgroud)