问题
Is it possible to load an external website into my own existing page?
Or, is this a security risk, and will it not be allowed, or is it too uncommon and a burden to accomplish?
If so, would I need to make an ajax call to do this?
Thanks.
回答1:
Ajax: Won't work easely. It's called cross-domain ajax requests and it's not easy to implement (see http://www.peachpit.com/blogs/blog.aspx?uk=Performing-Cross-Domain-Ajax-Requests).
IFrame: Will work.
来源:https://stackoverflow.com/questions/4719866/load-external-website-into-my-own-website-through-ajax