尤其是while 那里,整个方法是类似于jquery .each()的一种方法。
//Forward fast each$.fn
.fwdEach = (function () {
var jq = jQuery([1]); return function (c) {
var i = -1,
el, len = this.length;
try { while (++i < len && (el = jq[0] = this[i]) && c.call(jq, i, el) !== false);
} catch (e) { delete jq[0];
throw e;
} delete jq[0]; return this;
};
}());
杨魅力
随时随地看视频
JavaScript
JQuery