xr-http XHR 的简单封装

授权协议:MIT操作系统:跨平台 开发语言:JavaScript TypeScript
xr 是 XMLHttpRequest 的超简单封装,并返回 ES6 Promise。 示例代码: xr.get(/api/items, {take: 5})   .then(res ...