前端使用jQuery发起ajax请求向后端请求数据
setup() {
$.ajax({
url: "http://localhost:3000/user/acount/token/",
type: "post",
data: {
username: "yxc",
password: "pyxc",
},
success(resp) {
console.log(resp);
},
error(resp) {
console.log(resp);
}
});
}
rds_blogs