02 2012 档案
摘要:jquery:grep 函数grep: function( elems, callback, inv ) {var ret = [], retVal;inv = !!inv; //变成boolen, 默认是false// Go through the array, only saving the items// that pass the validator functionfor ( var i = 0, length = elems.length; i < length; i++ ) {retVal = !!callback( elems[ i ], i ); // 将满足callb
阅读全文