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 阅读全文
posted @ 2012-02-22 14:17 风去无痕 阅读(158) 评论(0) 推荐(0) 编辑