欢迎来到牛牛题库网 牛牛题库官网
logo
全部科目 > 大学试题 > 计算机科学 > jQuery考试

单项选择题

在页面中有如下的HTML代码。
< div id=“box”>
< h2 id=“top1” name=“header1”>1< /h2>
< h2 id=“top2”name=“header2”>2< /h2>
< /div>
下列能输入“1”的jquery代码是()

A.alert($(".top1").html();
B.alert($([name=’header1]’).html());
C.alert($([name=’header]’).html());
D.alert($(’#header1’).html());

点击查看答案&解析

相关考题

单项选择题