如何在Coffeescript中启用和谐?
以下是我如何运行我的js代码:
node --harmony ./data/app.js
现在我想转移到CoffeeScript。 所以我尝试像这样运行它:
coffee ./data/app.coffee
它失败了。 我怎么能通过这个--harmony
选项?
要传递参数,可以使用--nodejs
参数:
coffee --nodejs --harmony ./data/app.coffee
以下是我如何运行我的js代码:
node --harmony ./data/app.js
现在我想转移到CoffeeScript。 所以我尝试像这样运行它:
coffee ./data/app.coffee
它失败了。 我怎么能通过这个--harmony
选项?
要传递参数,可以使用--nodejs
参数:
coffee --nodejs --harmony ./data/app.coffee