这里是我的代码..onclick同时调用两个函数?
<script type="text/javascript">
function clicker(){
var thediv=document.getElementById('downloadoverlay');
if(thediv.style.display == "none"){
thediv.style.display = "";
thediv.appendChild()
return false;
}
}
function clicker1(){
var thediv1=document.getElementById('downloadbox');
if(thediv1.style.display == "none"){
thediv1.style.display = "";
thediv1.appendChild()
return false;
}
}
</script>
单击按钮时..事件应该同时调用两个功能..帮助..?
它不帮助鄙..它在叫的第一个功能,而不是第二... – Suren 2012-03-24 09:54:08
@Suren在控制台的某个地方是否有错误?你也应该在代码中错过任何地方添加分号。它的缺席会让事情变得糟糕 – 2012-03-24 10:00:48