当前位置:知识百答>百科知识>jquery 怎么获取网易云音乐api

jquery 怎么获取网易云音乐api

2023-08-22 21:24:54 编辑:join 浏览量:575

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;

};

标签:jquery,api,网易

版权声明:文章由 知识百答 整理收集,来源于互联网或者用户投稿,如有侵权,请联系我们,我们会立即处理。如转载请保留本文链接:https://www.zhshbaida.com/article/236110.html
热门文章