一:二维数组
1.初始化:var grades = [ [12, 19, 10], [22, 11, 11], [77, 77, 77] ]2.调用:
grades[0][0]
二:对象数组
1.初始化:
var ChannelInfo = new Array(25);//存放通道信息的数组 for(var i = 0;i<25;i++){ ChannelInfo[i] = new Array(5); ChannelInfo[i] = null; ChannelInfo[i] = new Object; ChannelInfo[i]['iCurObsID'] = 0; ChannelInfo[i]['bTalk'] = false; ChannelInfo[i]['bAudio'] = false; ChannelInfo[i]['bRec'] = false; ChannelInfo[i]['bShowBitRate'] = false; ChannelInfo[i]['bAuto'] = false;}
2.调用:
ChannelInfo[0]['iCurObsID']
三:对象中的数组