简体   繁体   中英

How to read JSON data from url

Snapped code returns data from url in JSON format, how to create function to read data returned by this code in JQuery ?

var RealDataApi = function () {
var url_getgatedata = "api/realdata/getgatedata";

return {
    getGateData: function (done, fail, always) {
        var jqxhr = $.get(url_getgatedata);
        jqXhrHandler(jqxhr, done, fail, always);
    },

You can take the headers or parameters in the URL and by using postman you can get the JSON. Some of the headers will be encrypted in the URL.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM