ajax返回值疑问
来源:4-8 通用导航开发(逻辑层)

ofeliaLee
2019-04-15
loadUserInfo: function () {
_user.checkLogin(function (res) {
$('.user.not-login').hide().siblings('.user.login').show().find('.username').text(res.username)
}, function (errMsg) {
//do nothing
})
}
老师这里,res.username是后端定义好的返回值对象的属性吗
写回答
1回答
-
Rosen
2019-04-15
对,这是接口返回的字段
00
相似问题