http鉴权json

http鉴权json

function myfunction(){
    var ak = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';
    var sk = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';
    var url = 'http://api.map.baidu.com/geocoder/v2/?address=百度大厦&output=json&ak=' + ak;
    var sn = getSn(url, sk);
    var newUrl = url + '&sn=' + sn;
    return newUrl;
}

你可能感兴趣的:(json)