我为我的cloud9应用程序安装了节点v0.8.25,我希望在节点v0.11.2上进行开发.那么我可以在v0.8上运行cloud9并在Ubuntu上的v0.11.2上运行我的程序吗?我用过nvm.
谢谢.
我创建了测试Meteor应用程序,我发现可以在客户端上使用dev工具查看整体代码(服务器端).测试应用程序(在浏览器中):
(function(){ if (Meteor.isClient) {
Template.hello.greeting = function () {
return "Welcome to test_app.";
};
Template.helo.events({
'click input' : function () {
// template data, if any, is available in 'this'
if (typeof console !== 'undefined')
console.log("You pressed the button");
}
});
}
if (Meteor.isServer) {
Meteor.startup(function () {
// code to run on server at startup
});
}
}).call(this);
Run Code Online (Sandbox Code Playgroud)
这是设计的吗?服务器端代码可以留在服务器上吗?