Javascript印刷対象

269 ワード

<!-- lang: js -->
  function dump_obj(myObject) {  
      var s = "";  
      for (var property in myObject) {  
       s = s + "
"+property +": " + myObject[property] ; } alert(s); };