内部ドメインページのソースを取得しようとしていますが、基本的にそれをjsファイルに複製できます。
可能かどうかはわかりませんが、コードがどのように見えるかを開始しようとしました。
正しく機能しないため、おそらく var ソースが間違っていると思います。
誰かが私のコードをデバッグしてくれることを願っています。
ありがとう!
$(document).ready(function() {
// make request to site
var request = "http://mysite.com/page.html";
// get the dom from the html layer
var source = $(request+'html').html();
// output to the dom the source of the request
$('html').append(source);
});
このようなものはもっと理にかなっていますか?
$(document).ready(function() {
var create = $('html').load('http://mysite.com/page.html');
document.write(create);
});