[JQuery] 使用each() 來跑迴圈


var obj = {
  "key1": "value1",
  "key2": "value2"
};
$.each( obj, function( key, value ) {
  alert( key + ": " + value );
});

留言