Uncaught typeerror: cannot read property 'toggle' of undefined of activeitem , что делать? сам код: window.onload = function() { var items = document.queryselectorall('.items .item'); function activeitem() { this.classlist.toggle('active-item'); } setinterval(function() { var rand = mtrand(0, items.lenght - 1); activeitem.call(items[rand]); }, 500); } function mtrand(min, max) { return math.floor(math.random() * (max - min + 1)); }

user15042001 user15042001    3   06.10.2019 02:50    20

Другие вопросы по теме Информатика