0
我有这样的路线:Meteorjs铁:路由器数据
Router.route('/', {
name: 'index',
template: 'index',
data: function() {
console.log(Meteor.user());
}
});
在浏览器控制台,首先,它显示:
null
,右后:
Object {_id: "aSeHqtE8o7C3x5NsW", profile: Object, username: "torayeff"}
谁能解释双重输出的原因?