jquery ajax请求本地json

jquery  ajax请求本地json,必须用get,类型必须是json

/*$.ajax({

            type:"GET",

            url:"data/data.json",

            dataType:"json",

            success:function(){

                alert("success");

            },

            error:function(){

                alert("error");

            }

扫描二维码关注公众号,回复: 307399 查看本文章

        });*/

猜你喜欢

转载自anhongyang125.iteye.com/blog/2362146
今日推荐