Web应用开发

中method是什么?取值可以有哪些?

题目

中method是什么?取值可以有哪些?

参考答案和解析
正确答案: method是表单提交方式。
取值可以为get和post两种。
如果没有搜索结果,请直接 联系老师 获取答案。
相似问题和答案

第1题:

method condensed preparation method


正确答案:condensed preparation method:浓配法全部药物加入部分溶剂中配成浓溶液加热或冷藏后过滤稀释至所需浓度。
condensedpreparationmethod:浓配法,全部药物加入部分溶剂中配成浓溶液,加热或冷藏后过滤,稀释至所需浓度。

第2题:

有一个接口定义如下,下列选项中实现了该接口并且不是抽象的是( )。interface A{ int method1 (int i); int method2 (int j);}

A.class B implements A{ int method1() { } int method2() { }}

B.class B{int method1(int i) { }int method2(int j) { }}

C.class B implements A{ int methodl(int i) { } int method2(intj) { }}

D.class B extends A{int method1(int i) { }int method2(int j) { }}


正确答案:C

第3题:

form标记中的method属性用来定义处理程序从表单中获取信息的方式,只有一种方式可供设置。()

此题为判断题(对,错)。


正确答案:错误

第4题:

不论Html控件的method属性是什么,都可以使用request对象的form属性来读取变量的值。()


正确答案:错误

第5题:

指出下面哪一项是在抽象类中声明一个抽象方法。( )

A.public abstract method();

B.public abstract void method();

C.public void abstract Method();

D.public void method(){abstract;}


正确答案:B
解析:本题考查在Java抽象类中声明抽象方法的格式。在Java语言中,将abstract关键字修饰的类称为抽象类。与此相对应,用abstract关键字修饰的方法称为抽象方法。当一个类的定义完全表示抽象的概念时,它不应该被实例化为一个对象,因此不能为抽象类实例化对象,也就是说,abstract类必须被继承。与此相应,abstract方法必须被重写。抽象类中可以包含抽象方法,对抽象方法只须声明,而不需要实现具体的内容,格式为 abstract retumType MethodName([paramlist])。对于抽象方法声明格式,abstract关键字不能缺少,此外,还需要注意如下内容:①声明格式中没有{};②最后的“;”不能缺少;③可以用public 或 protected关键字来修饰。选项A错误,缺少返回类型;选项B正确;选项C错误,返回类型要跟在abstxact后面;选项D错误,抽象方法中不需要有具体的实现内容,更不需要{}。

第6题:

You are developing a Windows Communication Foundation (WCF) service that is hosted by a Windows Forms Application.The ServiceHost instance is created in the Form Constructor.You need to ensure that the service is not blocked while the UI thread is busy.What should you do?()

A. Decorate the service implementation class with the following line of code [ServiceBehavior(UseSyncronizationContext = false)]

B. Decorate the service implementation class with the following line of code [ServiceBehavior(ConcurrencyMode = ConcurrencyMode.Multiple)]

C. Call the Invoke method of the form and supply a delegate.

D. Call the BeginInvoke method of the form and supply a delegate.


参考答案:A

第7题:

有一个接口定义如下,下列选项中实现了该接口并且不是抽象的是 interface A { int method1(int i); int method2(int j); }

A.class B implements A { int method 1(){} int method 2(){} }

B.class B { int method 1(int i){} int method 2(int j){} }

C.class B implements A { int method 1(int i){} int method 2(int j){} }

D.class B extends A { int method 2(int j){} int method 1(int j){} }


正确答案:C
解析:本题考查在Java中接口的实现。接口是一种只含有抽象方法或变量的特殊的抽象类。在类的声明中用implements子句来表示一个类使用某个接口。选项A在方法内没有参数值;选项B只是定义了一个类,并没有实现与A的接口:选项C中使用关键字implements实现了该接口,这里接口中的方法并没有使用abstract修饰,所以不是抽象的;选项D中extends是用宋继承父类的,而A并不是一个类,不能用extends。

第8题:

指明由哪个网页处理form标记中数据的属性是()。

A.都有

B.都没有

C.action属性

D.method属性


正确答案:C

第9题:

Which of the information should be entered on the form?

A.Amount of money earned
B.Name of employer
C.Remittance method used
D.Employee's company address

答案:A
解析:
“1.Total wages…in 2006."指出应当填写2006年所挣的收入。

第10题:

要在表单中添加提交按钮,实现在用户单击“提交”按钮时,自动将表单提交道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”></FORM>
  • D、 <FORM  METHOD=”POST” ACTION=http://www.xmission.com> <INPUT TYPE=”submit” VALUE=”提交”NAME=“b1”></FORM>

正确答案:C,D

更多相关问题