会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
雨弓
---talk is cheap,show me the code
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
下一页
2014年9月29日
nmq 提交到 npm
摘要: 安装npm install nmq源码:https://github.com/ronwe/nmq此版本提供 pub/sub , 优化 pull
阅读全文
posted @ 2014-09-29 18:31 雨弓
阅读(215)
评论(0)
推荐(0)
编辑
2014年9月24日
node 内存消息队列
摘要: var net = require('net')var clients = [] ,msgs = {}function unWrapMsg(data){ data = data.toString().trim() var _d = data.split(':' , 2) _d...
阅读全文
posted @ 2014-09-24 17:34 雨弓
阅读(739)
评论(0)
推荐(0)
编辑
2014年9月1日
emitter 增强 多条件触发
摘要: 1 ;(function(global ,undefined){ 2 var evts = {} 3 ,onceTag = '__event_once' 4 function emit(event ){ 5 var args = util.toArr...
阅读全文
posted @ 2014-09-01 15:42 雨弓
阅读(246)
评论(0)
推荐(0)
编辑
2014年8月20日
前端模板引擎 超轻量
摘要: ;(function(global ,undefined){ var cache = {} var sn = '_ret_' function etic(tplId , data){ if (!tplId) return var tplNode =...
阅读全文
posted @ 2014-08-20 17:27 雨弓
阅读(576)
评论(0)
推荐(0)
编辑
2014年6月27日
闲来无事爬了下通讯录 试手 jsdom
摘要: curl http://xxx.com/address/addresslist\?search\=%40 --cookie oa_cookie=123 -s| node parss.js js 代码var jsdom = require('jsdom') ,fs = require('fs...
阅读全文
posted @ 2014-06-27 12:29 雨弓
阅读(458)
评论(0)
推荐(0)
编辑
2014年6月19日
WAP 图片 lazyload
摘要: 原理是根据屏幕上的坐标找到需要做 lazyload 的区域1,先监听 scroll 事件var threshold = 30 ,scrolling_ltwindow.addEventListener('scroll', function(){ scrolling_lt = new Dat...
阅读全文
posted @ 2014-06-19 13:06 雨弓
阅读(312)
评论(0)
推荐(0)
编辑
2014年5月9日
google 搜索不跳中间页
摘要: Array.prototype.slice.call(document.links,0).forEach(function(link){link.onmousedown = null})插件总失效 用这个对付下
阅读全文
posted @ 2014-05-09 12:42 雨弓
阅读(145)
评论(0)
推荐(0)
编辑
2014年5月8日
关闭 sftp
摘要: vi/etc/ssh/sshd_config注释掉这行Subsystem sftp /usr/libexec/openssh/sftp-server/etc/rc.d/init.d/sshd restart
阅读全文
posted @ 2014-05-08 14:39 雨弓
阅读(1036)
评论(0)
推荐(0)
编辑
2014年5月7日
node-webkit 主页面和 iframe 页通讯
摘要: Hello World!
阅读全文
posted @ 2014-05-07 15:37 雨弓
阅读(1087)
评论(0)
推荐(0)
编辑
2014年5月6日
node 命令行输入控件 prompt.js
摘要: function print(){ console.log.apply(console , arguments) }var step ,_lstStp ,_onConfirmInput ,_secretvar action,step_keys ,step_inde...
阅读全文
posted @ 2014-05-06 16:39 雨弓
阅读(3897)
评论(0)
推荐(1)
编辑
上一页
1
2
3
4
5
6
7
下一页