string的对象方法


                          var b="B";
var str="hunyingdajiala";
document.write(str.charAt(10));
document.write("<br/>"+str.indexOf("jia"));
document.write("<br/>"+str.lastIndexOf("la"));
document.write("<br/>"+b.toLowerCase());

document.write("<br/>"+str.toUpperCase());

结果对应:

i
9
12
b
HUNYINGDAJIALA



string的对象方法

相关文章:

  • 2022-12-23
  • 2021-11-22
  • 2022-02-20
  • 2022-12-23
  • 2022-12-23
  • 2021-07-16
  • 2021-06-27
  • 2022-02-09
猜你喜欢
  • 2022-12-23
  • 2021-09-07
  • 2022-12-23
  • 2022-01-17
  • 2021-12-12
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案