尤其是while 那里,整個(gè)方法是類(lèi)似于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;
};
}());
我不大理解他這代碼為啥不用each?
楊魅力
2023-05-02 13:09:03