app.jsvar express = require('express');var app = express();var con = require('./content');con.hello();app.listen(3000);模块content.jsexports.hello=funct... Read More
posted @ 2015-11-02 23:23
tinyphp
Views(556)
Comments(0)
Diggs(0)
安装express 使用命令创建express工程, 生成express相应的工程结构 bin 里面就一个www文件,其实还是个js脚本文件,使用npm start启动网站时会调用www。public 里面放了一些静态文件,默认生成的项目,只有stylesheets下有一个style.css文件。j Read More
posted @ 2015-11-02 19:58
tinyphp
Views(769)
Comments(0)
Diggs(0)