2017-05-17 6th fu345nkcl Follow 2017-05-17 15:10:41 License: MIT License Fork0 Fav0 View166 Play Stop Reload Fullscreen Smart Phone Readme JavaScript 17 lines HTML 16 lines CSS 10 lines 2017-05-17 6th function Dataobject(n,m){ this.name=n; this.mail=m; this.show=function(){ document.write("<p>"+this.name+"("+this.mail+")</p>"); }; } var data={ "太郎":new Dataobject("太郎","taro@yamada.jp"), "花子":new Dataobject("花子","hanako@flower.com"), "つやの":new Dataobject("つやこ","syoda@tuyano.com") }; for(var item in data){ data[item].show(); } <!DOCTYPE html> <html> <head> <meta charaset="utf-8"> <meta name="viewport" content="width=device-width,user-scalable=no"> <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"> <title>変数</title> <style type="text/css"> body{margin:0; } </style> </head> <body> </body> </html> 2017-05-17 6th * { margin: 0; padding: 0; border: 0; } body { background: #fdf; font: 30px sans-serif; } function Dataobject(n,m){ this.name=n; this.mail=m; this.show=function(){ document.write("<p>"+this.name+"("+this.mail+")</p>"); }; } var data={ "太郎":new Dataobject("太郎","taro@yamada.jp"), "花子":new Dataobject("花子","hanako@flower.com"), "つやの":new Dataobject("つやこ","syoda@tuyano.com") }; for(var item in data){ data[item].show(); } <!DOCTYPE html> <html> <head> <meta charaset="utf-8"> <meta name="viewport" content="width=device-width,user-scalable=no"> <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"> <title>変数</title> <style type="text/css"> body{margin:0; } </style> </head> <body> </body> </html> * { margin: 0; padding: 0; border: 0; } body { background: #fdf; font: 30px sans-serif; } use an iframe compat browser, deer Play on jsdo.it games Author Share ブログに埋め込む QR Tag Download Complete! Description What kind of game? Control Device Smartphone Controllerjsdo.it WebSocket Controller» Mouse Keyboard Touch Device Fullscreen Activated Inactivated jsdo.it games から削除する Submit Author fu345nkcl Tweet Default Panel Auto play Screenshot Readme JavaScript HTML CSS Size Width: px Height: px code <script type="text/javascript" src="http://jsdo.it/blogparts/aOoe/js"></script> application Discussion Questions on this code? Tags application