我有以下数组:
array(a, a, a, b, b, c, c, c, c, d, d);
当我循环遍历并回显它时,结果是:
a
a
a
b
b
c
c
c
c
d
d
我怎么会想要以这样一种方式回显它:
a
b
c
d
a
b
c
d
a
c
c
下面是网格中的数组,以更好地解释我试图实现的目标
Current
a a a b
b c c c
c d d
What im tryin to do
a b c d
a b c d
a c c
我该怎么做?
看到你的一些答案,很明显我解释得不够好:/
我应该包括数组键应该是什么样子的:
0a 1a 2a 3b
4b 5c 6c 7c
8c 9
我有个网站。我的网站昨天很难打开,当用谷歌Chrome打开它,而不是我的网站这个页面显示:
Warning: Visiting this site may harm your computer!
The website at http:... appears to host malware - Software that can hurt your
computer or otherwise operate without your consent.
....
我在Chrome中查看了我的页面源代码,我看到了我的代码的脚本结束(之后):
echo ""; echo "
function product() {
return Array.prototype.reduce.call(arguments, function(as, bs) {
return [a.concat(b) for each (a in as) for each (b in bs)]
}, [[]]);
}
arr4=[['4','4A','4B'],['16D','15D'],['5d','5e']];
alert(product(['
我将确保select中的项目激活我将解释的特定特性。我有这样的选择:
<select id='selection'> <!-->this is for the class<!-->
<option>4B</option>
<option>5B</option>
</select>
<select id='secondSelection'> <!-->this is for the data to be loaded<!--&