Google [站内搜索]

预览模式: 普通 | 列表

jQuery.ajax回调函数success和done互换示例

$.ajax({
    url: "/test.ashx",
    data: `t=${new Date().getTime()}`,
    success: (data,textStatus,jqXHR) => {console.log("success")},
    error: (jqXHR,textStatus,errorThrown) => {console.log("error")},

查看更多...

分类:脚本语言 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 910