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’);
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’);
A. if($(‘ B. id’)) { …… } C. if($(‘ D. id’).length > 0) { …… } E. if($(‘ F. id’).length() > 0) { …… } G. if($(‘ H. id’).size > 0) { …… }
A. 弹出一次对话框,显示click one time B. 弹出一次对话框,显示click two times C. 弹出两次对话框,依次显示click one time,click two times D. js编译错误
p标签
A. $(‘div, span, p’).click(function() { …… }); B. $(‘div || span || p’).click(function() { …… }); C. $(‘div + span + p’).click(function() { …… }); D. $(‘div ~ span ~ p’).click(function() { …… });