Node.js的高性能封裝 Express.js
Express.js 是對 Node.js 的一個高性能的封裝,
特性
- Robust routing
- Redirection helpers
- Dynamic view helpers
- Application level view options
- Content negotiation
- Application mounting
- Focus on high performance
- View rendering and partials support
- Environment based configuration
- Session based flash notifications
- Built on Connect
- Executable for generating applications quickly
- High test coverage </ul>
示例代碼:
require('express')
get('/', function(){
this.contentType('html')
return '' }) run()</pre>
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!