$.ajax({
????type:"post",
????url:"/servlet/js.do",
????dataType:"json",
????data:"{username:${'#username'}.val(),password:${'#password'}.val()}",
????contentType:"application/x-www-form-urlencoded;charset=utf-8",
????success:function?(data)?{
????????console.log(data);
????},
????error:function?(e)?{
????????console.log(e);
????}
});是了很久,請(qǐng)教一下后臺(tái)如何去接收前端通過ajax發(fā)送的數(shù)據(jù)呢
添加回答
舉報(bào)
0/150
提交
取消