var arr = [ "one", "two", "three", "four", "five" ]; jQuery.each(arr, function(index, value) { console.log(this); return (this != "three"); // will stop running after "three" });
var
arr = [
"one"
,
"two"
"three"
"four"
"five"
];
jQuery.each(arr,
function
(index, value) {
console.log(
this
);
return
(
!=
// will stop running after "three"
});
沒有留言:
張貼留言