這裏是我的代碼..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