开发者

Load a webpage in another webpage with jQuery using .load

开发者 https://www.devze.com 2023-04-10 12:47 出处:网络
I\'m looking for a way to load a webpage in another webpage using .load in jQuery. The instructions listed on the page weren\'t very clear.

I'm looking for a way to load a webpage in another webpage using .load in jQuery.

The instructions listed on the page weren't very clear.

Let's say the domain is "example.com" and the page I'm tryin开发者_StackOverflowg to load is located at "example.com/page".


API explains enough: http://api.jquery.com/load/ $('#result').load('/page');

Where #result is the div with id result. Inside that div, the page /page will be loaded.

0

精彩评论

暂无评论...
验证码 换一张
取 消