是的,Coffeescript可以简单地编译为纯JS,使其与node.js完全兼容。
要在节点上运行Coffeescripts,您可以:
- 键入
coffee -c example.coffee
要编译的代码,然后node example.js
运行已编译的JS。 - 只需输入
coffee example.coffee

是的,Coffeescript可以简单地编译为纯JS,使其与node.js完全兼容。
要在节点上运行Coffeescripts,您可以:
coffee -c example.coffee要编译的代码,然后
node example.js运行已编译的JS。
coffee example.coffee