Created
May 7, 2011 06:29
-
-
Save nappa7878/960262 to your computer and use it in GitHub Desktop.
多次元配列の作り方(Titanium Mobile)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var ary = []; | |
for(var i=0;i<10;i++){ | |
ary.push([]); | |
} | |
//ary[0-9][無限?] | |
ary[0][0] = '0-0'; | |
ary[0][1] = '0-1'; | |
ary[1][0] = '1-0'; | |
ary[9][9] = '9-9'; | |
//ary[10][9] はエラーになります |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment