我只是尝试打印出一个 FALSE 的参数值,并将“false”打印为纯文本,非常令人难以置信……有什么线索吗?
$rootScope.session = {
"username" : $window.localStorage['user_username'] || false,
"id_user" : $window.localStorage['user_id'] || false,
"token" : $window.localStorage['user_session_token']
}
//in view
<div>{{session.username}}</div>