猿问

btn.onmouseover=show;开始提示Uncaught TypeError: Cannot set property 'onmouseover' of null怎么解决!

var ul1=document.getElementById("change_ul");
var btn=document.getElementById("btn");

btn.onmouseover=show;
btn.onmouseout=hide;


function show(){
   document.getElementById("change_ul").style.display="block";
};
function hide(){
   ul1.style.display="none";
}

跟习惯的事别离
浏览 1895回答 1
1回答
随时随地看视频慕课网APP

相关分类

JavaScript
我要回答