会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
type_Y
2016年11月8日
Node,js Express第三方框架 (一)
摘要: 中文文档 http://www.expressjs.com.cn/4x/api.html express的安装 npm install express 基本使用 代码结构 中文文档 http://www.expressjs.com.cn/4x/api.html express的安装 npm inst
阅读全文
posted @ 2016-11-08 20:04 type_Y
阅读(147)
评论(0)
推荐(0)
node.js xtpl模板的使用
摘要: 官网 https://github.com/xtemplate/xtpl 安装 npm install xtpl xtemplate --save xtemplate模板语法 https://github.com/xtemplate/xtemplate/blob/master/docs/syntax
阅读全文
posted @ 2016-11-08 19:59 type_Y
阅读(918)
评论(0)
推荐(0)
Node.js HTTP核心模块
摘要: HTTP协议 包含请求报文,响应报文 使用之前的方式拼接响应报文 let msg = "<h1>hello world</h1>"; //构造响应报文 let responseText = "HTTP/1.1 200 OK\r\n"; responseText += "Server: mynodes
阅读全文
posted @ 2016-11-08 19:57 type_Y
阅读(155)
评论(0)
推荐(0)
导航
博客园
首页
新随笔
联系
订阅
管理
公告