单项选择题
在函数内部阻止浏览器默认事件的方法,正确的是()
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(){}) -
单项选择题
以下关于模块化开发与按需加载的适用场景不符合的是()
A.应用复杂
B.需要长期维护
C.对性能要求苛刻
D.短期项目 -
单项选择题
var hel="hello"; (function(){ var word="World"; console.log(hel+word); })();以上代码最后一次打印的结果是( )
A.helloWorld
B.undefined
C.程序报错bar is not defined
D.null
