,Chrome,Opera,Safari
xmlhttp = new XMLHttpRequest();
)else{
∥code for IE6,IE5
xmlhttp new...username=zhangsan"
}).then(function (resp){
alert(resp.data);
})
axios((
method:"post",
url...[,config])axios.options(url[,config])axios.post(url[,data[,config]])axios.put(url[,data[,config]])axios.patch...);
});
发送 psot 请求
axios.post("ur","参数")
.then(function(resp){
alert(resp.data);
}...逻辑值(true 或 false)数组(在方括号中)对象(在花括号中)null
实例:
var json {
"name":"zhangsan",
"age":23,