我最终可能会拥有“Title 1E”。这带来了一个问题,因为下面的相应数组将要求我创建["Title 1E", '8']
(我不想这样做)或为所有潜在的标题 1 创建占位符(即更改["Title 2A", '100']
并创建空白标题 1 的 4-99),从而制作一个很长的菜单,里面装满了空行。
我会在subsubmenu
如果submenu[0].push(4,1," "Title 1E", '4' ")
可行,我该如何将以下内容更改为["Title 2A", '5']
希望它有一些意义。我脑子里还不是很清楚。
(function() {
var submenu= [
[ ["Title 1A", '0'],
["Title 1B", '1'],
["Title 1C", '2'],
["Title 1D", '3']
],
[ ["Title 2A", '4'],
["Title 2B", '5'],
["Title 2C", '6'],
["Title 2D", '7']
],
];
//the Array below populates a sub-submenu when a selection is made above
var subsubmenu= [
[ ["Issue 1A1", 'resonse1a1'],
["Issue 1A2", 'response1a2'],
["Issue 1A3", 'response1a3'],
["Issue 1A4", 'response1a4']
],
[ ["Issue 1B1", 'resonse1b1'],
["Issue 1B2", 'resonse1b2'],
["Issue 1B3", 'resonse1b3']
],
[ ["Issue 1C1", 'resonse1c1']
],
// etc...
];