没有合适的资源?快使用搜索试试~ 我知道了~
sugar-xhr:围绕Superagent的简化Promise包装器。 基于 orodiooro-xhr
共13个文件
js:10个
gitignore:1个
md:1个
需积分: 9 0 下载量 39 浏览量
2021-05-30
09:26:13
上传
评论
收藏 6KB ZIP 举报
温馨提示
糖-xhr 用法 import { post } from 'sugar-xhr' let options = { headers: { 'X-Foo': 'bar' } } post('http://foobar.com', { foo: 'bar' }, opts).then(function(resp) { console.log(resp.body) }) import get from 'sugar-xhr/get' get('http://google.com').then(function(resp) { console.log(resp.text) }) 方法 get(url: String, data?: PlainObject, opts?: PlainObject) 使用data参数会将对象编码到 url 的查询字符串中。 选项直接传递给超级代理。 po
资源推荐
资源详情
资源评论
收起资源包目录
sugar-xhr-master.zip (13个子文件)
sugar-xhr-master
post
index.js 124B
webpack.config.js 474B
lib
request.js 371B
response.js 209B
get
index.js 387B
test
index.js 185B
put
index.js 123B
dist
index.js 6KB
delete
index.js 118B
.gitignore 37B
index.js 144B
readme.md 680B
package.json 829B
共 13 条
- 1
资源评论
余木脑袋
- 粉丝: 24
- 资源: 4596
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功