我正在尝试使用来运行onclick任何按钮的功能class="stopMusic"。我在Firebug中遇到错误
document.getElementByClass不是函数
这是我的代码:
var stopMusicExt = document.getElementByClass("stopButton");
stopButton.onclick = function() {
var ta = document.getElementByClass("stopButton");
document['player'].stopMusicExt(ta.value);
ta.value = "";
};
一只名叫tom的猫
慕无忌1623718
相关分类