我想做一个函数,除了当前在数组中单击。意味着我有这样的事情:
cubesmixed = [array, with, 145, elements]
cubesmixed[54].click(function() {
for(var i = 0; i < 145; i++) {
var randomnumber=Math.floor(Math.random()*500000);
cubesmixed[i].animate({ x: randomnumber, y: randomnumber }, randomnumber, "bounce");
}
我不想cubesmixed[54]
被动画化。我该怎么说
cubesmixed[i] except 54
提前致谢!