ITeye博客

nodejs运行coffeescript

biyeah · 2011-12-10 03:05 · nodejs · 编程语言 · Markdown

首先安装coffee-script

npm install coffee-script

在js文件中加入下面代码

require('coffee-script');//引用coffeescript模块
require('./mytest');//指向要运行的coffeescript文件,可加多个文件。

就可以node xx.js,来运行coffeescript文件了。

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。