单项选择题以下添加键盘事件代码正确的是()。

A.$(document).bind("keyup")
B.$(document).bind("mouseup")
C.$(document).bind("click")
D.$(document).on("load")


您可能感兴趣的试卷

你可能感兴趣的试题

1.单项选择题定义一个jQuery插件函数正确的写法是()。

A.$.fn.demo=function(){}
B.$.exent("demo")
C.$.event="demo"
D.$.demo

2.单项选择题

的打印结果是()。

A.pic
B.undefined
C.img
D.程序报错

3.单项选择题想要获取到select元素内被选中的option元素,以下书写正确的是()。

A.$("select").filter("option:selected")
B.$("select").find("option:selected")
C.$("select").is("option:selected")
D.$("select").has("option:selected")

4.单项选择题jQuery中的加号选择器相当于以下哪个方法?()

A.next()
B.siblings()
C.nextAll()
D.prev()

5.单项选择题在鼠标事件中,获取鼠标相对于当前窗口可视区域的纵坐标位置,以下代码正确的是()。

A.event.offset().top
B.event.clientY
C.event.offsetTop
D.event.pageY

6.单项选择题()方法可以使元素重复切换样式?

A.className()
B.addClass()
C.toggleClass()
D.removeClass()

7.单项选择题已知代码var $a=$(";#a1";),$b=$(";#b1";),$c=$(";#c1";);如果想将$c插入到$a的前面,以下代码正确的是()。

A.$a.before($c);
B.$c.appendTo($a);
C.$c.before($a);
D.$a.prependTo($c);

8.单项选择题()方法可以阻止事件冒泡?

A.preventDefault()
B.stopPropagation()
C.return true
D.stop()

9.单项选择题如何阻止动画继续执行?()

A.remove()
B.stop()
C.toggle()
D.delete()

10.单项选择题如果在做动画时,要同时改变多个属性,比如位置,透明度,宽高等,使用哪个方法最佳?()

A.animate()
B.slideDown()
C.fadeToggle()
D.slideToggle()