weixin_33725239 2017-03-11 19:06 采纳率: 0%
浏览 30

无法使用AJAX显示JSON

I have a JSON file, with many data inside. And I want to display this with AJAX, so I tried to make this but doesn't work and after much search on internet I call your help :

    $(document).ready(function () {
        $.getJSON("data/liste_des_sites_des_hotspots_paris_wifi.json").done(function(){

            function donnee (data) {
                console.log(data)
            }


    })

</div>
  • 写回答

3条回答 默认 最新

  • ?yb? 2017-03-11 19:08
    关注

     $(document).ready(function () {
            $.getJSON("yourlocation").done(function(){
    
                console.log(data);
    
    
        });
        });
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>

    Your syntax is bad/wrong.

    </div>
    
    评论

报告相同问题?

悬赏问题

  • ¥15 高德地图点聚合中Marker的位置无法实时更新
  • ¥15 DIFY API Endpoint 问题。
  • ¥20 sub地址DHCP问题
  • ¥15 delta降尺度计算的一些细节,有偿
  • ¥15 Arduino红外遥控代码有问题
  • ¥15 数值计算离散正交多项式
  • ¥30 数值计算均差系数编程
  • ¥15 redis-full-check比较 两个集群的数据出错
  • ¥15 Matlab编程问题
  • ¥15 训练的多模态特征融合模型准确度很低怎么办