JQuery
$.get
语法:
$(selector).get(url,data,success(response,status,xhr),dataType)
示例:
load(){
$.get("/api/xxxApi/getList", function(result){
console.log(result);
});
}
语法:
$(selector).get(url,data,success(response,status,xhr),dataType)
示例:
load(){
$.get("/api/xxxApi/getList", function(result){
console.log(result);
});
}