单选题以下哪个选项不能够正确地得到这个标签()。A$(input[type=’button’])B$(#btnGo)C$(.btnGo)D$(.btn)

单选题
以下哪个选项不能够正确地得到这个标签()。
A

$(input[type=’button’])

B

$(#btnGo)

C

$(.btnGo)

D

$(.btn)


参考解析

解析: 暂无解析

相关考题:

下列程序使用FlowLayout布局管理器管理3个Button构件在Frame中的位置。请将程序补充完整。注意:不改动程序结构,不得增行或删行。import java.awt.*;public class ex2{private Frame. frm;private Button btn1;private Button btn2;private Button btn3;public static void main(String[] args){ex2 t=new ex2();t.method();}public void method(){frm=new Frame("ex2")______Btn1=new Button("Button1");btn2=new Button("Button2");btn3=new Button("Button3");frm.add(btn1);frm.add(btn2);______frm.pack();frm.setVisible(true);}}

请完成下列Java程序:建立一个Applet程序,包括创建一个画布构件、一个面板构件,面板构件上包含3个按钮,用来设置画布和面板的背景颜色,这3个按钮(Red、Green、Blue)分别控制画布和面板背景色改变为3原色,即红、绿、蓝。要求画布宽度为300,高度为200。注意:请勿改动main()主方法和其他已有语句内容,仅在下划线处填入适当的语句。源程序文件代码清单如下:import java.awt.*;import java.applet.*;/*<applet code="ex10_2.class" width=800 height=400 ></applet>*/public class ex10_2 extends Applet{private Panel pane110_2;private Canvas canvas10_2;private Button btn1, btn2, btn3;public void init(){canvas10_2=new Canvas();canvas10_2. ______;canvas10_2.setBackground(Color.black);add(canvas10_2);pane110_2 = new Panel();pane110_2.setBackground( Color.black );btn1 = new Button( "Red" );btn2 = new Button( "Green" );btn3 = new Button( "Blue" );pane110_2.add( btn1 );pane110_2.add( btn2 );pane110_2.add( btn3 );______;}public boolean action( Event e, Object o ){if( e.target == btn1 ){pane110_2.setBackground( Color.red );canvas10_2.setBackground( Color.red );}else if( e.target == btn2 ){pane110_2.setBackground( Color.green );canvas10_2.setBackground(Color.green);}else if( e.target == btn3 ){canvas10_2.setBackground( Color.blue );pane110_2.setBackground( Color.blue );}return true;}}

下面是一个Applet程序,其功能是有两个按钮,分别为First和Second,以及一个Label构件。要求单击 First时能在Label中显示出"Command:First",而单击Second时能显示出"Command:Second",要求只能重载一次 actionPerformed()方法,请改正程序中的错误(有下划线的语句),使程序能输出正确的结果。注意:不改动程序的结构,不得增行或删行。源程序文件代码清单如下:import java.awt.*;import java.awt.event.*;import java.applet.*;/*<applet code=ex04_3.class width=800 height=400></applet>*/Public class ex04_3 extends Applet implements ActionListener{private String str="ok";private Label l;private Button btn;public void init(){setLayout(null);l=new Label(str);l.reshape(10,10,100,30);add(l);btn=new Button("First");btn.reshape(10,50,60,20);l.addActionListene(this);add(btn);btn=new Button("Second");btn.reshape(10,100,60,20);btn.setActionCommand("First");btn.addActionListener(this);add(btn);}public void actionPerformed(ActionEvent ae){str="Command:"+ae.getActionCommand();btn.setText(str);}}ex04_3.html<HTML><HEAD><TITLE>ex04_3</TITLE></HEAD><BODY><applet code="ex2_3.class" width=800 height=400></applet></BODY></HTML>

下列程序使用CardLayout管理了2张卡片,每张都是一个Panel,每个Panel有一个Button,单击按钮,显示下一张卡片中的内容。请将程序补充完整。注意:不改动程序结构,不得增行或删行。import java.awt.*;import java.awt.event.*;public class ex3 implements______{private Panel p1,p2;private Button btn1,btn2;private Frame. frm;private CardLayout cl;public static void main(String[] args){ex3 tt=new ex3();tt.method();}public void method(){Frm=new Frame("CardLayout");Cl=new CardLayout();btn1=new Button("Card1");btn2=new Button("Card2");pl=new Panel();p2=new Panel();p1.add(btn1);btn1.addActionListener(this);p2.add(btn2);______frm.SetLayout(cl);frm.add(pl,"Layer1");frm.add(pl,"Layer1");frm.SetSize{200,200);frm.SetVisible(true);}public void actionPerformed(ActionEvent ae){______}}

下面哪个选项正确示例了传递一个参数给applet? ( )A.<applet code=Test.class age=33 width=100 heigh=100>B.<param name=age value=33>C.<applet code=Test.class name-age value=33 width=100 height=100>D.<applet Test 33>

请在下列程序的横线处填入正确的语句。 import java.awt.*; import java.awt,event.*; public class ex16 { Frame. f; TextArea ta; Button btn; public static void main(String[] args) { ex16 e = new ex16(); e.m(); } public void m() { f = new Frame("ex16"); ta = new TextArea(); btn = new Button("ok"); btn.addActionListener(new MyAction()); f.add(ta, "Center"); f.add(btn, "South"); f.setSize(100, 100); f.setVisible (true); } class MyAction implements ActionListener { ______ { System. out.println (ta. getText ()); } } }A.static void actionPcrformcd(AcfionEvent e)B.public void action(ActionEwent e)C.public actionPerformed(ActionEvent e)D.public void actionPerformed(ActionEvent e)

阅读以下说明和Java代码,将解答写入对应栏内。【说明】请完成下列Java程序。程序的执行结果是生成一个具有一个TextField类型的对象in、 Button类型的对象btn和Label类型的对象out图形用户界面,程序的功能是计算用户输入数的平方,如图3所示。注意:请勿改动main()主方法和其他已有的语句内容,仅在下划线处填入适当的语句。【程序】import java. awt.*;import java, awt. event.*;public class square {public static void main(String args[ ]){(1)}}class AppFrame. extends Frame{TheAdapterTest listener = new TheAdapterTest( );Text Field in = new TextField (5);Button btn = new Button("计算");Label ut = new Label("用于显示计算结果");public AppFrame( ){setLayout( new FlowLayout( ));add(in);add(btn)add(out);btn. addActionListener( new BtnActionAdapter( ));addWindowListener (listener);setSize(400,100);show( );}class BtnActionAdapter implements (2) {public void actionPerformed((3)) {String s = in. getText( );double d =(4)double sq = d * d;out. setText(d+"的平方是:" +sq);}}class TheAdapterTest extends WindowAdapter{public void windowCIosing((5)){System. exit(1)}}}

下面是一个Applet程序,其功能是有2个按钮,分别为First和Second,以及一个Labe1构件。要求点击First时则能在 Labe1中显示出Command:First,而点击Second时则能显示出Command:Second,要求只能使用重载一次actionPerformed()方法。请改正程序中的错误(有下划线的语句),使程序能输出正确的结果。注意:不改动程序的结构,不得增行或删行。程序运行结果如下:import java.awt.*;import java.awt.event.*;import java.applet.*;/*<applet code=ex2_3.class width=800 height=400></applet>*/public class ex2_3 extends Applet implements ActionListener {private String str="ok";private Labe1 1;private Button btn;public void init() {setLayout(null);1=new Label(str);1.reshape(10, 10, 150, 30);add(1);btn = new Button("First");btn.reshape(10, 50, 60, 20);1.addActionListener(this);add(btn);btn = new Button("Second");btn.reshape(10, 100, 60, 20);btn.setActionCommand("First");btn.addActionListener(this);add(btn);}public void actionPerformed(ActionEvent ae) {str="Command: " +ae.getActionCommand();btn.setText(str);}}ex2_3.htm1<HTML><HEAD><TITLE>ex2_3</TITLE></HEAD><BODY><applet code="ex2_3.class" width=800 height=400 ></applet></BODY></HTML>

请根据网页显示的效果图(如图12-4所示),将HTML文本中(n)处解答填于纸相应的解答栏内。<html><head><!-- TcmplateBeginEditable name="doctitle" --><title>论坛登录注意事项</title><!-- TemplateEndEditable --><meta. http-equiv="Content-Type" content="text/html; charset=-gb2312"><!-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable --><1-- TemplateParam name="Header" type="boolean" value="tme" --><!-- TemplateParam name="this" type="boolean" value="tme" --><!-- TemplateParmn name="UserName" (1) value="textfieldl"--><!-- TemplateParam name="Password" type="text" value="textfieldl" --><!-- TemplateParam name="ButtonName" type="text" value="Submit" --><!-- TemplateParam name="ButtonLabel" type="text" value="Sign In" --><!-- TemplateParam name="FormAction" type="text" value="" --><!-- TemplateParam name="FormMethod" type="text" value="post" --><!-- TemplateParam name="FormName" type="text" value="forml" --><style. type="text/css"><!--.stylel {font-size: 36px;font-weight: bold;}--></style></head><body class="sub"><div align="center"><span class="style1 ">论坛登录注意事项</span><br></div><formame="@@(FormName)@@method="@@(ForrnMethod) @@"action="@@(FormAetion) @@,,><table width="85%" border="0" cellspacing="0" cellpadding="1" class="TitleColor"><tr style="vertical-align: top"><td> <table width="100%" height="290" border="1" cellpadding="4" cellspacing="0"><tt class="HeaderColor"><td width="175" style="vertical-align: top"><!-- TemplateBeginEditable name="Title" --><h3 align="center">论坛登录</h3><!-- TemplateEndEditable --></td><td width="437" style="vertical-align: top"><!-- TemplateBeginIf eond="Header" --><!-- TemplateBeginEditable name="Title2" --><h3 align=(2)>注意事项</h3><!-- TemplateEndEditable --><!-- TemplateEndlf--></td></tr><tr style="vertical-align: top"><td height="230" class="TitleColor"><!-- TemplateBeginEditable name="Title3"--><label for="usemame"><strong>用户名称</strong></label><!-- TemplateEndEditable --><br><input id="usemame" name="usemame"type="text"(3)><p> </p><!-- TemplateBeginEditable name="Title4" --><label for="password"><strong>用户密码<input id="password3" name="password" type="password" size="25"></strong></label><!-- TemplateEndEditable --><div align="right"><strong>&nbs

●试题六阅读以下说明和Java代码,将解答写入答题纸的对应栏内。【说明】请完成下列Java程序。程序的执行结果是生成一个具有一个TextField类型的对象in、Button类型的对象btn和Label类型的对象out图形用户界面,程序的功能是计算用户输入数的平方,如图3所示。注意:请勿改动main()主方法和其他已有的语句内容,仅在下划线处填入适当的语句。【程序】import javA.awt.*;import javA.awt.event.*;public class square {public static void main(String args[]){(1)}}class AppFrame. extends Frame{TheAdapterTest listener=new TheAdapterTest();TextField in=new TextField (5) ;Button btn=new Button("计算");Label ut=new Label("用于显示计算结果");public AppFrame(){setLayout(new FlowLayout());add(in);add(btn);add(out);btn.addActionListener(new BtnActionAdapter());addWindowListener(listener);setSize(400,100);show();}class BtnActionAdapter implements (2) {public void actionPerformed( (3) ){String s=in.getText();double d= (4)double sq=d*d;out.setText(d+"的平方是:"+sq);}}class TheAdapterTest extends WindowAdapter{public void windowClosing( (5) ){System.exit (1) ;}}}

btn=new Button("ok"); FrameInout() { add(btn); btn.addActionListener(this); } public void ActionPerformed(ActionEvent e){...} } 以上语句中的this是指代btn(按钮)对象。() 此题为判断题(对,错)。

在HTML页面中,定义了如下的Javascript函数,则正确调用该函数的HTML代码是()  function compute(op){  alert(op);  }A、input name=”a” type=”button” onclick=”compute(this.value)” value=”+” B、input name=”b” type=”button” onclick=”compute(‘-‘)” value=”-” C、input name=”c” type=”button” onclick=”compute(“*”)” value=”*” D、input name=”d” type=”button” onclick=”compute(/ )” value=”/”

在HTML页面中包含一个按钮控件mybutton,如果要实现点击该按钮时调用已定义的Javascript函数compute,要编写的HTML代码是()。A、〈input name=“mybutton” type=“button” onBlur=“compute()” value=“计算”〉B、〈input name=“mybutton” type=“button” onFocus=“compute()” value=“计算”〉C、〈input name=“mybutton” type=“button” onClick=“functioncompute()” value=“计算”〉D、〈input name=“mybutton” type=“button” onClick=“compute()” value=“计算”〉

要在表单中添加提交按钮,实现在用户单击“提交”按钮时,自动将表单提交道ACTION属性中指定的位置。下列语句正确的是()。A、FORM  METHOD=”POST” ACTION=http://www.xmission.com INPUT TYPE=”button” VALUE=”提交”NAME=“b1”/FORM B、FORM  METHOD=”POST” ACTION=http://www.xmission.com INPUT TYPE=”reset” VALUE=”提交”NAME=“reset1”/FORM C、FORM  METHOD=”POST” ACTION=http://www.xmission.com INPUT TYPE=”submit” VALUE=”提交”NAME=“submit1”/FORMD、 FORM  METHOD=”POST” ACTION=http://www.xmission.com INPUT TYPE=”submit” VALUE=”提交”NAME=“b1”/FORM

下列辅助类的说法错误的是()A、button type="button" class="close"span aria-hidden="true"×/spanspan class="sr-only"Close/span/buttonbr可以用来表示一个关闭按钮 B、span class="caret"/span可以用来表示一个三角符号 C、navbar可使用pull-left类来定义D、navbar可使用navbar-left类来定义

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You create a Button control for the application. You need to ensure that the application meets the following requirements: When the mouse pointer is over the Button control, the background color of the button is set to red and the Button control appears bigger. When the mouse pointer is not over the Button control, the button returns to its original state. What should you do?()A、Create a template. Declare a VisualState element in the template.B、Create a StoryBoard animation. Add an EventTrigger class to the Button control that begins the StoryBoard animation.C、Create a ScaleTransform class. Bind the ScaleX and ScaleY properties of the Button control to the Background property by using a custom value converter.D、Add a method named ChangeAppearance in the code-behind file. Subscribe the ChangeAppearance method to the MouseEnter event of the Button control.

一个button控件ID为btn_sumbit,双击后得到的处理时间函数名为()A、button_clickB、btn_submit_ClickC、btn_submit_pushD、button_push

下列哪些项表示按钮?()A、type=“submit"B、type="reset"C、type="image"D、type="button"

假设ClassX是类类型标识符,Type为类型标识符,可以是基本类型或类类型,Type_Value为Type类型的表达式,那么,类型转换函数的形式为()A、ClassX::operator Type(Type t){… return Type_Value;}B、friendClassX::operator Type(){… return Type_Value;}C、Type ClassX::operator Type(){…return Type_Value;}D、ClassX::operator Type(){… return Type_Value;}

要求用JavaScript实现下面的功能:在一个文本框中内容发生改变后,单击页面的其他部分将弹出一个消息框显示文本框中的内容,下面语句正确的是()。A、〈input type="text" onClick="alert(this.value)"〉B、〈input type="text" onChange="alert(this.value)"〉C、〈input type="text" onChange="alert(text.value)"〉D、〈input type="text" onClick="alert(value)"〉

inputid="btnGo"type="button"value="单击我"class="btn"/以下哪个选项能够正确地得到这个标签()。A、$("input[type=’button’]")B、$("#btnGo")C、$(".btnGo")D、$(".btn")

inputid="btnGo"type="button"value="单击我"class="btn"/以下哪个选项不能够正确地得到这个标签()。A、$("input[type=’button’]")B、$("#btnGo")C、$(".btnGo")D、$(".btn")

单选题要求用JavaScript实现下面的功能:在一个文本框中内容发生改变后,单击页面的其他部分将弹出一个消息框显示文本框中的内容,下面语句正确的是()。A〈input type=text onClick=alert(this.value)〉B〈input type=text onChange=alert(this.value)〉C〈input type=text onChange=alert(text.value)〉D〈input type=text onClick=alert(value)〉

单选题在HTML页面中包含一个按钮控件mybutton,如果要实现点击该按钮时调用已定义的Javascript函数compute,要编写的HTML代码是()。A〈input name=“mybutton” type=“button” onBlur=“compute()” value=“计算”〉B〈input name=“mybutton” type=“button” onFocus=“compute()” value=“计算”〉C〈input name=“mybutton” type=“button” onClick=“functioncompute()” value=“计算”〉D〈input name=“mybutton” type=“button” onClick=“compute()” value=“计算”〉

单选题Click the Exhibit button. What is the result?()A Compilation of class A fails.B Line 28 prints the value 3 to System.out.C Line 28 prints the value 1 to System.out.D A runtime error occurs when line 25 executes.E Compilation fails because of an error on line 28.

多选题以下哪个选项能够正确地得到这个标签()。A$(input[type=’button’])B$(#btnGo)C$(.btnGo)D$(.btn)

单选题假设ClassX是类类型标识符,Type为类型标识符,可以是基本类型或类类型,Type_Value为Type类型的表达式,那么,类型转换函数的形式为()AClassX::operator Type(Type t){… return Type_Value;}BfriendClassX::operator Type(){… return Type_Value;}CType ClassX::operator Type(){…return Type_Value;}DClassX::operator Type(){… return Type_Value;}