Skip to content

Instantly share code, notes, and snippets.

@nappa7878
Created May 7, 2011 06:29
Show Gist options
  • Save nappa7878/960262 to your computer and use it in GitHub Desktop.
Save nappa7878/960262 to your computer and use it in GitHub Desktop.
多次元配列の作り方(Titanium Mobile)
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