摘要: ajax高级程序设计上的。/* * 将ajax根据优先级进行排列的方法 * 构造一个简单的排列函数,接受一个排序的函数 * 所有添加的ajax保存到_items中 * */function PriorityQueue(fn){ this._items = []; if(typeof fn == 'function'){ this._compare = fn; }}PriorityQueue.prototype = { constructor:PriorityQueue, _compare:function(oValue1,oVlaue2){ if(oValue1<oVla 阅读全文
posted @ 2011-11-30 15:48 zjhsd2007 阅读(1315) 评论(0) 推荐(0) 编辑