jquery 怎么获取网易云音乐api
发布网友
发布时间:2022-04-28 16:01
我来回答
共1个回答
热心网友
时间:2022-06-19 14:52
参数配置
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;
};