复制代码function sendAjax(url, param, datat, callback) { $.ajax({ type: "post", url: url, data: param, dataType: datat, success: callback, error: function() { ClosetoastLoading(); errorTip(); } }); }
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
复制代码function ajax(url, data) {
return $.ajax({
url: apiUrl + url,
data: data,
type: 'get',
success: function(res) {
if (res && res.code == 200) {
return res
} else {
message(res.msg)
return
}
},
error: function(e) {
message(JSON.parse(e.responseText).message)
}
});
}
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
上面是“jQuery ajax封装用方法”的全面内容,想了解更多关于 js 内容,请继续关注web建站教程。
当前网址:https://ipkd.cn/webs_123.html
workflows工作流
荷塘月色ComfyUI工作流
3D圆形玉雕图案comfyui工作流
一张由表情符号组成的照片ComfyUI工作流
一只竹节虫ComfyUI工作流
一只白色的孔雀ComfyUI工作流
一只千纸鹤坐在路上哭泣ComfyUI工作流
一幅骨架坐在公园的长椅上
一尊白玉佛像ComfyUI工作流
猜你喜欢
声明:本站提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请发送到邮箱:admin@ipkd.cn,我们会在看到邮件的第一时间内为您处理!