var fun = function fn(){ return;alert(12); }; console.log(fun());打印结果是()
A.弹出12 B.程序报错 C.null D.undefined
单项选择题在函数内部阻止浏览器默认事件的方法,正确的是()
A.event.stop() B.event.preventDeafult() C.event.stopPropagation() D.event.prevent()
单项选择题给已知元素btn添加Dom0级事件,以下正确的是()
A.btn.click=function(){} B.btn.onclick=function(){} C.btn.addEventListener(’click’,function(){}) D.btn.on(’click’,function(){})