【日积月累】jQuery
作者:互联网
jQuery 基础
发送请求
let url;
let data;
let type = "POST";
$.ajax({
url:url,
data:data,
type:type,
dataType:"json",
contentType:"application/json;charset=utf-8",
success:function(res){
// TODO
},
error:function(res){
//TODO
}
});
标签:jQuery,url,data,日积月累,let,res,type 来源: https://www.cnblogs.com/kunlingou/p/12173871.html