當前位置:編程學習大全網 - 網站源碼 - jquery 怎麽獲取網易雲音樂api

jquery 怎麽獲取網易雲音樂api

參數配置

var setConfig = function (c) {

c = v.extend(v.clone(defaultConfig), c);

var method = c.method,

resType = c.resType,

body = c.body;

c.uri = _get163Url[resType](c.key);

c.body = body ? qs.encode(body) : '';

if (method === 'GET') {

if (resType === 'song') c.body = c.body.replace('=', '=%5B') + '%5D';

c.uri += '?' + c.body;

delete c.body;

}

if (c.key) delete c.key;

delete c.resType;

console.log(c);

return c;

};

  • 上一篇:Linux C write函數
  • 下一篇:如何在PHP中開啟GD庫支持詳解
  • copyright 2024編程學習大全網