Skip to content

Instantly share code, notes, and snippets.

View leeseean's full-sized avatar
🎯
Focusing

lucky boy leeseean

🎯
Focusing
  • chinatelecom
  • canton
View GitHub Profile
/**
* 分时函数例子
* 以创建 WebQQ 列表为例
* @param {[type]} data 函数执行需要用到的数据
* @param {Function} fn 真正需要分时执行的函数
* @param {[type]} count 每次创建一批节点的数量
* @param {[type]} interval 函数执行间隔
* @return {[type]} [description]
*/
var timeChunk = function(data, fn, count, interval) {