更新时间:2023-11-27 17:31:46
.done()
和 .fail()$的参数c $ c>与相应的
成功的参数相同:
和错误:
$。ajax()
功能,即:
The arguments for .done()
and .fail()
are the same as the arguments for the corresponding success:
and error:
parameters for the $.ajax()
function, namely:
.done( function(data, textStatus, jqXHR) { ... } );
和
.fail( function(jqXHR, textStatus, errorThrown) { ... } );
出于打字稿的目的, textStatus
和 errorThrown
是字符串, jqXHR
是对象
,以及 data
取决于远程服务器发送给你的东西。
For the purposes of typescript, textStatus
and errorThrown
are strings, jqXHR
is an Object
, and data
depends on what the remote server sends you.