if(document.all){ //ie document.getElementById("div").attachEvent('onlick',function(){ alert(""); }) }else{//w3c document.getElementById("div").addEventListener('click',function(){ alert(""); }) } }
if(document.all){ //ie document.getElementById("div").attachEvent('onlick',function(){ alert(""); }) }else{//w3c document.getElementById("div").addEventListener('click',function(){ alert(""); }) } }
转载于:https://www.cnblogs.com/youbiao/p/7079388.html

被折叠的 条评论
为什么被折叠?