$.ajax请求过程,等待时的事件的写法
发布时间:2020-12-16 00:51:33 所属栏目:百科 来源:网络整理
导读:$.ajax({ url: '../../../NET/User/Query/FuzzyQuery.ashx?method=eotDL',data: { id: id,type: type},cache: false,type:'POST',//默认GET dataType: 'text',async:true//默认异步//发送前 beforeSend: function () { $.messager.progress({ title: 'Please
$.ajax({ url: '../../../NET/User/Query/FuzzyQuery.ashx?method=eotDL',data: { id: id,type: type},cache: false,type:'POST',//默认GET dataType: 'text',async:true//默认异步 //发送前 beforeSend: function () { $.messager.progress({ title: 'Please waiting',msg: 'Loading data...' }); },//请求完成(结果可能成功或失败) complete: function (da) { $.messager.progress('close'); $.messager.show({ title: '提示',msg: '下载完成!',timeout: 3000,showType: 'slide' }); },success: function (da) { } }); (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |