Skip to content

Instantly share code, notes, and snippets.

@yardfarmer
Created July 7, 2014 16:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yardfarmer/f0abb107d22986457fde to your computer and use it in GitHub Desktop.
Save yardfarmer/f0abb107d22986457fde to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-git2.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
</body>
</html>
$.each( { name: "John", lang: "JS" }, function(i, n){
alert( "Name: " + i + ", Value: " + n );
return false; // 退出 each 循环了,后续不再执行
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment