JQuery
$.post
语法:
$.post(URL,data,callback);
示例:
load(){
$.post("/api/xxxxApi/getList",
{
name:"zhangsan",
age:12
},
function(data,status){
console.log("Data: " + data + "\nStatus: " + status);
});
}
语法:
$.post(URL,data,callback);
示例:
load(){
$.post("/api/xxxxApi/getList",
{
name:"zhangsan",
age:12
},
function(data,status){
console.log("Data: " + data + "\nStatus: " + status);
});
}