我对数组还是很陌生,我的问题是你如何一个接一个地链接数组?
例如:在下面的season数组中,有4个key/value,那么在designer0和designer1数组中,有3个key/value对。
对于designer0数组,它属于season[0],而对于designer1数组,它属于season[1],但是我如何以这样的方式编写它,使之有父子关系?
var season = new Array();
season[0] = "summer 2013";
season[1] = "winter 2014";
season[2] = "autumn 1998";
season[3] = "spring 2005";
var designer0 = new Array();
designer[0] = "Albbs";
designer[1] = "Alexander Wang";
designer[2] = "BCBG Max Azria";
var designer1 = new Array();
designer[0] = "William Howe";
designer[1] = "Bringingthewood";
designer[2] = "Kesha";