Day1
Ajax技术
Asynchronous Javascript And XML,异步 JavaScript 和 XML ,异步的网络请求
$.ajax({
url: 'http://localhost:8888/stu',
type : 'get',
data:{
stuno : oStuno.value == null ? '' : oStuno.value
},
async : true,
dataType : 'json',
success : function (resp) {
console.log(resp);
oP.innerHTML = resp['object'].name;
},
error : function (err) {
console.log(err)
}
})