网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

在JavaScript中,下列关于String对象的charAt()和indexOf()方法理解正确的是()。

  • A、charAt()方法是获取位于指定索引位置的字符
  • B、indexOf()方法是查找字符或字符串的位置,返回字符串出现的所有位置
  • C、charAt()方法的参数可以为一个或两个
  • D、indexOf()方法的参数为指定的索引值

参考答案

更多 “在JavaScript中,下列关于String对象的charAt()和indexOf()方法理解正确的是()。A、charAt()方法是获取位于指定索引位置的字符B、indexOf()方法是查找字符或字符串的位置,返回字符串出现的所有位置C、charAt()方法的参数可以为一个或两个D、indexOf()方法的参数为指定的索引值” 相关考题
考题 在JavaScript语言中,event对象用于描述一个JavaScript程序中的()。 A.对象B.程序C.事件D.以上选项均错

考题 已知String str=new String ("Luck");,则下列关于str的操作中不合法的是( )。A.String s=str. toUpperCase()B.int i=Str. length;C.char s=str. charAt(2);D.String s="Good" +str;

考题 下列方法中,不属于类 String 的方法是A ) tolowerCase ()B ) valueof ()C ) charAt ()D ) append ()

考题 下面哪项不是JavaScript的内置对象()A、dateB、mathC、documentD、string

考题 Javascript中String对象通过indexOf方法选取第一次出现子字符串的字符位置。() 此题为判断题(对,错)。

考题 下列方法中,不属于类String的方法是A.toLowerCase()B.valueOf()C.charAt()D.append()

考题 下列方法中,不属于类String的方法是( )。A.toLowerCase( )B.value( )f( )C.charAt( )D.append( )

考题 在JavaScript中,下列对象中具有onChange事件的是()。A.SelectB.TextC.TextareaD.doucument

考题 下列方法中,哪个用于实现获取字符在某个字符串中第一次出现的索引?() A.char charAt(int index)B.int indexOf(int ch)C.int lastIndexOf(int ch)D.boolean endsWith(String suffix)

考题 分析下面的JavaScript代码段,输出结果是( )var mystring="I am a student";a=mystring.charAt(9);document.write(a); A.I am a stB.UC.UdentD.T

考题 简述在JavaScript中,可以使用哪些对象?

考题 String对象的方法不包括()。A、charAt()B、substring()C、toUpperCase()D、length()

考题 下列不是 String 类的方法的是()A、charAt(int index)B、indexOf(String s)C、beginWith(String s)D、endsWith(String s)

考题 设有定义:String s=“World”;,下列语句错误的是()。A、int m=s.indexOf(‘r’);B、char c=s.charAt(0);C、int n=s.length();D、String str=s.append(‘2’);

考题 String date="Today is Sunday.";String str2=data.CharAt(s.length( )-1);则str2为()A、yB、.C、nullD、false

考题 Javascript里String对象通过()方法取第一次出现子字符串的字符位置。

考题 下列关于AJAX说法不正确的是:()A、定义JavaScript函数时可以不写函数名B、定义JavaScript函数要明确返回类型C、JavaScript函数可以返回数组D、Ajax中XMLHttpRequest对象中的open方法第三个参数如果为true表示异步,false为同步

考题 String str="abcdefghi"; char chr=str.charAt(9)。

考题 在JavaScript中,是严格区分大小写的、在JavaScript中,所有的内置对象名称和内置函数名称都是大写的。

考题 Which methods from the String and StringBuffer classes modify the object on which they are called?()  A、The charAt() method of the String class.B、The toUpperCase() method of the String class.C、The replace() method of the String class.D、The reverse() method of the StringBuffer class.E、The length() method of the StringBuffer class.

考题 下面属于JavaScript对象约有()A、WindowsB、DocumentC、formD、String

考题 填空题Javascript里String对象通过()方法取第一次出现子字符串的字符位置。

考题 单选题在JavaScript中,下列关于String对象的charAt()和indexOf()方法理解正确的是()。A charAt()方法是获取位于指定索引位置的字符B indexOf()方法是查找字符或字符串的位置,返回字符串出现的所有位置C charAt()方法的参数可以为一个或两个D indexOf()方法的参数为指定的索引值

考题 判断题String str="abcdefghi"; char chr=str.charAt(9)。A 对B 错

考题 单选题String date="Today is Sunday.";String str2=data.CharAt(s.length( )-1);则str2为()A yB .C nullD false

考题 单选题Which methods from the String and StringBuffer classes modify the object on which they are called?()A The charAt() method of the String class.B The toUpperCase() method of the String class.C The replace() method of the String class.D The reverse() method of the StringBuffer class.E The length() method of the StringBuffer class.

考题 问答题简述在JavaScript中,可以使用哪些对象?