文件名称:little-bear:Node.js Web框架
文件大小:13KB
文件格式:ZIP
更新时间:2024-05-20 03:25:41
JavaScript
小熊 little-bear是一个基于express的Web框架。 目录 LittleBear.static(路径) 特征 执照 快速开始 创建服务器目录 一个简单的服务器如下所示: server/ ├── theme.css ├── app.js ├── index.html └── app.sv.js app.sv.js: exports . def = function ( ) { var path = require ( 'path' ) ; this . get ( '/' , function ( req , res , next ) { res . sendFile ( path . join ( __dirname , 'index.html' ) ) ; } ) ; } ; index.html: <!DOCTYP
【文件预览】:
little-bear-master
----.gitignore(525B)
----package.json(860B)
----.travis.yml(165B)
----LICENSE(1KB)
----README.md(6KB)
----lib()
--------route-node.js(2KB)
--------index.js(6KB)
--------mod.js(2KB)
----test()
--------little-bear.js(2KB)
--------server()
--------mod.js(1KB)
--------mocha.opts(53B)