如何在Coffeescript中启用和谐? [英] How to enable harmony in Coffeescript?
本文介绍了如何在Coffeescript中启用和谐?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这里是我运行我的js代码:
Here is how I run my js code:
node --harmony ./data/app.js
现在我想移动到CoffeeScript。所以我尝试这样运行:
Now I want to move to the CoffeeScript. So I try to run it like that:
coffee ./data/app.coffee
并且失败。如何通过此 - harmony
选项?
And it fails. How can I pass this --harmony
option?
推荐答案
args through,you can use the - nodejs
参数:
To pass args through, you can use the --nodejs
argument:
coffee --nodejs --harmony ./data/app.coffee
这篇关于如何在Coffeescript中启用和谐?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文