JavaScriptã«ãããç¹°ãè¿ã 翻訳 åæï¼from __future__ import * >> Iteration in JavaScript èè ï¼Bob Ippolito JavaScriptã«ã¯ãåºæ¬çã¯2種é¡ã®ãªãã¸ã§ã¯ãã®ç¹°ãè¿ããããã ãã¹ã¦ã®ãªãã¸ã§ã¯ãã¯ããããã£ã®åæããµãã¼ããã¦ããã for (var propName in someObject) { var value = someObject[propName]; } "Arrayãããã³ã«"ããµãã¼ããããªãã¸ã§ã¯ããããã for (var i=0; i<someObject.length; i++) { var value = someObject[i]; } ã©ã£ã¡ããã²ã©ãã ããããã£ã®åæã¯ãããã°ããããã使ãéããªããä½æ ãªããåæã®ä¸ã§ã¯èå³ã®ãªãããããã£ã«ããããééããããã«
{{#tags}}- {{label}}
{{/tags}}