A: alert(S(" #top’).text ()
B: alert(s(' . top'). text ())
C: alert(S("[name=' headerl’]”). text ()
D: alert(S(' [name=header1]’).text ();
举一反三
- 网页的;元素中包含以下HTML代码:;;标题1;;标题2;;下列能弹出"标题1"的Jquery代码是()。 A: alert($('[name=header]').text()); B: alert($("[name='header1']").text()); C: alert($('#header1').text()); D: alert($("#top1").text());
- 下列能弹出“标题1”的jQuery代码是( )。[img=408x110]17e449206b537d1.png[/img] A: alert($(' B: top1').text()); C: alert($('[name=header1]').text()); D: alert($("[name='header1']").text()); E: alert($(' F: header1').text());
- 网页的<;body>;元素中包含以下HTML代码: A: t;div id=""box"">; B: t;h2 id='top1' name='header1'>;标题1<;/h2>; C: t;h2 id='top2' name='header2'>;标题2<;/h2>; D: t;/div>; E: 能弹出""标题1""的jQuery代码是( )。 F: alert($(' G: top1').text()); H: alert($('[name=header1]').text()); I: H.alert($('[name='header1']').text()); J: I.alert($(' K: header1').text());
- 在页面中有如下的HTML代码。(选择一项) 1 2 下列能得到"1"的jquery代码是( ) A: alert($(".top1").html( ); B: alert($( [name='header1]' ).html( )); C: alert($( [name='header]' ).html( )); D: alert($(' E: header1').html( ));
- 以下哪段代码不能正确创建函数show()?() A: functionshow(text){alert(text);} B: varshowFun=functionshow(text){alert(text);} C: varshowFun=function(text){alert(text);} D: varshowFun=newfunction("text","alert(text)"};
内容
- 0
以下哪段代码能正确创建函数show() A: var showFun = new function{"text","alert(text)"}; B: function show(text){alert(text);} C: var showFun = function show(text){alert(text);} D: var showFun = function(text){alert(text);}
- 1
在XML文档中如果要使用到保留字符的话就要利用实体引用方式来表示。“>”号的实体引用方式是 A: &amp B: &gt C: &lt D: &apos
- 2
\(A\)同上题,将其对角化\(A=S\Lambda S^{-1}\)的方阵\(S\)可以是 A: \(\begin{pmatrix} 1 & 1 & 1 & 1 \\ 1 & 1 & 1 & 0 \\ 1 & 1 & 0 & 0 \\ 1 & 0 & 0 & 0 \end{pmatrix}\) B: \(\begin{pmatrix} 1 & 0 & 0 & 0 \\ 0 & 0 & 1 & 0 \\ 0 & 1 & 0 & 0 \\ 0 & 0 & 0 & 1 \end{pmatrix}\) C: \(\begin{pmatrix} 1 & 0 & 0 & -1 \\ 0 & 1 & -1 & 0 \\ 0 & 1 & 1 & 0 \\ 1 & 0 & 0 & 1 \end{pmatrix}\)
- 3
以下scanf函数调用语句中错误的是()。 A: scanf("%s", &pup[0].name); B: scanf("%d", &pup[1].age); C: scanf("%d", &pup[2].gender); D: scanf("%s", pup[4].name);
- 4
某网页中包含一个表单元素,代码如下:[form][input type="text" value="test"][/]如果想用弹出窗口显示该文本框中的值,应该写哪句JavaScript语句? A: alert(document.forms[0].elements[0].value); B: alert(document.form[0].elements[0].value); C: alert(document.form[0].elements[0].text); D: alert(document.forms[0].elements[0].text);