$.each( { name: "John", lang: "JS" }, function(i, n){
alert( "Name: " + i + ", Value: " + n );
});
alert( "Name: " + i + ", Value: " + n );
});
Результат:
Name: name, Value: John
Name: lang, Value: JS
No comments:
Post a Comment