jojuniori
10/24/2016 - 6:30 PM

jQ跨域请求JSON.js

var jsontree = [];
$.ajax({
    url: "http://192.168.2.46:8000/account/getjson/",
    type: "GET",
    dataType: 'JSONP',
    success: function(result){
        jsontree = result;
    }
});