this.save(userDetails, {
success: function (user, result, xhr) {
this.set({userName: user.userName});
},
error: function (user, result, xhr) {
}
});
return this.userName;
当我尝试设置我userName
得到的响应时,它没有设置。当我尝试提醒返回this.userName
时,它说我未定义。