题目内容

在HTML页面中有如下结构的代码:

S3N认证考试

请问下列选项()所示jQuery代码,不能够让汉字四的颜色变成红色。

A. $(‘
B. header ul li:eq(3)’).css(‘color’, ‘red’);
C. $(‘
D. header li:eq(3)’).css(‘color’, ‘red’);
E. $(‘
F. header li:last’).css(‘color’, ‘red’);
G. $(‘
H. header li:gt(3)’).css(‘color’, ‘red’);

查看答案
更多问题

在HTML页面中有如下结构的代码:
  • 苹果iPhone 5S
请问以下()方法不能让“苹果iPhone 5S”隐藏

A. $(‘
B. p-list li:nth-child(0)’).hide();
C. $(‘
D. p-list li:only-child’).hide();
E. $(‘
F. p-list li:last-child’).hide();
G. $(‘
H. p-list li:first-child’).hide();

有以下标签:请问不能够正确的获取文本框里面的值“张三”的语句是()

A. $(‘.txt’).val();
B. $(‘.txt’).attr(‘value’);
C. $(‘
D. txtContent’).text();
E. $(‘
F. txtContent’).attr(‘value’);

使用jQuery检查元素在网页上是否存在

A. if($(‘
B. id’)) { …… }
C. if($(‘
D. id’).length > 0) { …… }
E. if($(‘
F. id’).length() > 0) { …… }
G. if($(‘
H. id’).size > 0) { …… }

执行下面语句$(document).ready(function() {$(‘#click’).click(function() {alert(‘click one time’);});$(‘#click’).click(function() {alert(‘click two times’);});});单击按钮,会有什么效果()

A. 弹出一次对话框,显示click one time
B. 弹出一次对话框,显示click two times
C. 弹出两次对话框,依次显示click one time,click two times
D. js编译错误

答案查题题库