UNPKG

xe-ajax

Version:

异步请求函数,用于浏览器和 node.js 的 HTTP 客户端

16 lines (13 loc) 282 B
'use strict' var setupDefaults = { method: 'GET', mode: 'cors', cache: 'default', credentials: 'same-origin', redirect: 'follow', bodyType: 'json-data', headers: { 'Accept': 'application/json, text/plain, */*' } } module.exports = setupDefaults