jquery - Does $.each() execute for one item? -
will jquery method $.each() execute if there 1 item in array?
at least me, isn't.
yes will. example.
var 1 = [1]; $.each(one, function(index) { alert(one[index]); });
will alert 1
will jquery method $.each() execute if there 1 item in array?
at least me, isn't.
yes will. example.
var 1 = [1]; $.each(one, function(index) { alert(one[index]); });
will alert 1
Comments
Post a Comment