11 2011 档案
摘要: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
阅读全文
摘要:在网上看到的,收藏一下:// ----------------------------------------------------------// A short snippet for detecting versions of IE in JavaScript// without resorting to user-agent sniffing// ----------------------------------------------------------// If you're not in IE (or IE version is less than 5) then
阅读全文