单项选择题
下列jQuery事件绑定正确的是()
A.bind(type,[data],function(eventObject))
B.$(‘#demo’).click(function(){})
C.$(‘#demo’).on(‘click’,function(){})
D.$(‘#demo’).one(‘click’,function(){})
点击查看答案&解析
相关考题
-
单项选择题
以下jquery对象方法中,使用了事件委托的是()
A.bind
B.mousedown
C.change
D.on -
单项选择题
在网页中有如下HTML代码,则设置选择状态为“女”,正确jquery实现代码为()< input type="radio" name="sex" value="man"/>男< input type="radio" name="sex" value="woman"/>女
A.$("input:radio").get(0).attr("checked",true);
B.$(input[type=radio])[1].attr(checked ,true);
C.$(input[type=radio]),eq(1).attr(checked ,true);
D.$("sex:radio").eq(1).attr("checked",true); -
单项选择题
在jquery中,下列()可以用来判断id为txt_hide的元素不存在。
A.$("#txt_hide").length==0
B.$("#txt_hide").get(0)==0
C.$("#txt_hide").eq(0)==null
D.$("#txt_hide")==null
