Created
July 7, 2014 16:18
-
-
Save yardfarmer/f0abb107d22986457fde to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.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