jquery ajax request local json

jQuery ajax requests local json, you must use get, and the type must be json

/*$.ajax({

            type:"GET",

            url:"data/data.json",

            dataType:"json",

            success:function(){

                alert("success");

            },

            error:function(){

                alert("error");

            }

        });*/

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326826405&siteId=291194637