假设已创建一个Express工程,否则请参考express工程环境准备 修改app.js 通过如下命令启动此应用 Read More
posted @ 2015-10-30 21:18
tinyphp
Views(1116)
Comments(0)
Diggs(0)
这种引入很看到很想死吧!require.js可以很好的优化这个问题:1、下载require.jshttp://requirejs.org/docs/download.html2、用法如果放底部如果放头部指定主程序为main.js3、主模块写法// main.js require(['moduleA... Read More
posted @ 2015-10-30 11:17
tinyphp
Views(405)
Comments(0)
Diggs(0)
上一文章,用Node.js建HTTP服务器,然后在cmd启动,这次尝试用git bash。git bash 也是命令行工具,画面更好看,使用更方便,可以替代cmd。下载git:https://git-for-windows.github.io/安装省略....第一步:打开Git Bash,输入代码,... Read More
posted @ 2015-10-30 09:44
tinyphp
Views(2210)
Comments(0)
Diggs(0)