Xiaodong.Li

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2016年6月29日

摘要: redis-cluster研究和使用 : http://hot66hot.iteye.com/blog/2050676 Github ioredis : https://github.com/luin/ioredis Migrating-from-node_redis : https://githu 阅读全文
posted @ 2016-06-29 13:59 Xiaodong.Li 阅读(1930) 评论(0) 推荐(0) 编辑

2016年2月16日

摘要: javascript 随机 权重 阅读全文
posted @ 2016-02-16 17:15 Xiaodong.Li 阅读(3619) 评论(0) 推荐(0) 编辑

2016年1月28日

摘要: 思路 :用当前值除以3 获得一个值 a , b = parseInt(a) c = Math.pow(3,b); 用c 除以 要判断的数,如果能除尽, 则是, 如果除不尽, 则不是。 /** * @param {number} n * @return {boolean} */ var isPower 阅读全文
posted @ 2016-01-28 19:50 Xiaodong.Li 阅读(2504) 评论(0) 推荐(0) 编辑

2016年1月4日

摘要: //摘抄自:http://www.blueshop.com.tw/board/FUM20041006161839LRJ/BRD2008090916184152L.html//检测是否为内部IP/** * @param req * @returns {boolean} */var checkIsIns 阅读全文
posted @ 2016-01-04 11:49 Xiaodong.Li 阅读(1935) 评论(0) 推荐(0) 编辑