如何从外部网站获取div以显示在我的网站上 [英] how to fetch a div from an external website to show on my website

查看:62
本文介绍了如何从外部网站获取div以显示在我的网站上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经尝试过这段代码,但它没有用。请帮帮我。



I have tried this code but it didn't work. Please help me with this.

$.get("http://www.agriculture.com/markets",function (data)
{
$("#myMarketData).html(data.(".section section-market"))
});

推荐答案

.get( http://www.agriculture.com/markets,function(data)
{
.get("http://www.agriculture.com/markets",function (data) {


#myMarketData).html(data。( .section section-market ))
});
("#myMarketData).html(data.(".section section-market")) });


您好,您可以使用Jquery查找,希望这对您有所帮助

Hi, you can use Jquery "find", hope this help you


这篇关于如何从外部网站获取div以显示在我的网站上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆