`
biyeah
  • 浏览: 200545 次
  • 来自: ...
社区版块
存档分类
最新评论

nodejs运行coffeescript

阅读更多
首先安装coffee-script
引用
npm install coffee-script


在js文件中加入下面代码
require('coffee-script');//引用coffeescript模块
require('./mytest');//指向要运行的coffeescript文件,可加多个文件。


就可以node xx.js,来运行coffeescript文件了。
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics