Joh*_*ohn 8 javascript jquery
如何从外部网页获取html源代码?
像:getHtml('http://google.com');.
getHtml('http://google.com');
我试图使用:获取iframe的内容$("#frame").contents().find("html");,但如果在我的情况下网页没有html标签,只有1行文字.我无法使用PHP,file_get_contents()因为它不会保留会话数据.
$("#frame").contents().find("html");
file_get_contents()
mpl*_*jan 8
跨域?没有服务器进程是不可能的.如果您在Windows上并且可以使用HTA,则可以使用iframe
归档时间:
15 年,4 月 前
查看次数:
44002 次
最近记录:
8 年,10 月 前