Javascript examples for jQuery Method and Property:each
$.each convert numbers to objects
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <script type="text/javascript" src="https://code.jquery.com/jquery-compat-git.js"></script> <script type="text/javascript"> $(window).on('load', function() { $.each([3], function (key, value) { console.log(value=== 3); });// w w w. j a v a 2s . com }); </script> </head> <body> </body> </html>