最新回答 / 釋淨靈_南無阿彌陀佛
<...code...>span是標籤名,要用getElementsByTagName獲取喔~~var button = document.getElementById('button').getElementsByTagName('span');
2015-02-15
最新回答 / VincentLi
for (var i = 0; i < buttons.length; i++) { buttons[i].onclick = function(){ if (this.className == 'on') { return; } var myIndex = this.getAttribute('index');...
2015-02-15