zoukankan
html css js c++ java
superagent-promise
var Promise
=
this
.
Promise
||
require
(
'promise
'
)
;
var agent
=
require
(
'superagent-promise
'
)
(
require
(
'superagent
'
)
, Promise
)
;
// method, url form with `end`
agent
(
'GET
'
,
'
http://google.com
'
)
.
end
(
)
.
then
(
function
onResult
(
res
)
{
// do stuff
}
,
function
onError
(
err
)
{
//err.response has the response from the server
}
)
;
// method, url form with `then`
agent
(
'GET
'
,
'
http://google.com
'
)
.
then
(
function
onResult
(
res
)
{
// do stuff
}
)
;
// helper functions: options, head, get, post, put, patch, del
agent
.
put
(
'
http://myxfoo
'
,
'data
'
)
.
end
(
)
.
then
(
function
(
res
)
{
// do stuff`
}
)
;
// helper functions: options, head, get, post, put, patch, del
agent
.
put
(
'
http://myxfoo
'
,
'data
'
)
.
.
then
(
function
(
res
)
{
// do stuff
}
)
;
查看全文
相关阅读:
基于角色的权限控制
C#中实现拖动无边框窗体Form
C#加密方法汇总
监控 SQL Server (2005/2008) 的运行状况来自微软TetchNet
经典SQL语句集锦【转】
Asp.net+Xml+js实现无线级下拉菜单
CuteEditor5.0的安装及它与Ajax.net配合无刷新操作数据库!
sql 提取数字、字母、汉字
c# 判断远程文件是否存在
c#采集网页用得几个函数
原文地址:https://www.cnblogs.com/Gbeniot/p/7326357.html
最新文章
Windows Media Center
计算服务器中cache plan的大小1
What does sp_reset_connection do?
如何找到sql语句对应的存储过程?
SERIALIZABLE中的锁
同一存储过程中各个语句的执行次数不同(sys.dm_exec_query_stats)
Difference between RAID 0+1 vs RAID 1+0
EXT.NET
JSONObject 顺序问题
linq to xml查询绑定GridView
热门文章
C# 用户控件与窗体之间传值
安装windows服务提示输入用户名和密码
gridLookUpEdit字典控件 模糊查询
devenv.exe assert failure
system.badimageformatexception 未能加载文件或程序集
定时服务
Newtonsoft.Json 应用
判断DataReader是不是为空!
c# winform 让Form窗体上系统自带的红色关闭按钮失效,点击关闭变为隐藏
各种常用函数 (SQL)
Copyright © 2011-2022 走看看