随笔分类 -  Node.js

摘要:var generic_pool = require('generic-pool');var pool = generic_pool.Pool({ name: 'mysql', max: 10, create: function(callback) { var Client = requ... 阅读全文
posted @ 2015-04-22 22:20 北京流浪儿 阅读(1177) 评论(0) 推荐(0) 编辑
摘要:/* hash.js */ var crypto = require('crypto');module.exports = function(){ this.encode = function(){ var algorithm = arguments[0] ? arguments[0] ... 阅读全文
posted @ 2015-04-22 22:19 北京流浪儿 阅读(291) 评论(0) 推荐(0) 编辑
摘要:php中可以通过post or get 获取到url中的参数值,最近接触了node那么在nodejs里是怎么做的呢,上代码了!//需要使用的模块 http url当前url http://localhost:8888/select?aa=001&bb=002var http = requir... 阅读全文
posted @ 2014-08-20 14:12 北京流浪儿 阅读(287) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示