我不知道我是否让自己理解了例如文件 server / main.js 这样的地方
Meteor.startup (() => {
console.log ('where am I');
// example of collection and map
});
你可以看到消息但是在扩展的反应组件中我该怎么做呢?或者我必须导入一些方法吗?
答案 0 :(得分:0)
您也可以在客户端代码中使用console.log
。如果您愿意,可以在console.log
功能的顶部粘贴render()
,并在网络浏览器的控制台中看到消息。