参数配置
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