js indexOf("") toUpperCase()
来源:互联网 发布:php中面向对象的机制 编辑:程序博客网 时间:2024/05/16 02:42
indexOf("")
<script type="text/javascript">
var str="Hello world!"
document.write(str.indexOf("Hello") + "<br />")
document.write(str.indexOf("World") + "<br />")
document.write(str.indexOf("world"))
</script>
以上代码的输出:
0
-1(找不到)
6
toUpperCase()转换为大写 !
- js indexOf("") toUpperCase()
- 字符串字符JS:1.8,字符串(string)对象(length,indexOf(),lastIndexOf(),replace(),match(),toUpperCase(),toLowerCas
- js中的字符串(string)的一些方法:toUpperCase(),indexOf(""),length
- JS:1.8字符串(string)对象(length,indexOf(),lastIndexOf(),replace(),match(),toUpperCase(),toLowerCase())
- JS toLowerCase()方法 toUpperCase()方法
- java学习第24天(续),学习几个API,indexOf(),charAt(),toUpperCase(),toLowerCase(),subString(),trim()
- js search match indexof
- js中indexof详解
- js indexof用法
- js中的indexOf
- JS中的indexOf
- js indexOf的用法
- js indexOf使用方法
- js中indexof
- JS indexOf()方法
- js中数组indexOf
- js indexOf substring用法
- js indexof用法
- jbpm流程引擎内核设计思想及构架
- UVALive 5102
- strut1.0表单数据填充
- 如何调整launcher2屏幕的布局
- java关键字:Volatile
- js indexOf("") toUpperCase()
- android系统编译
- WPF 数据绑定 定制一个集合的视图 数据提供程序
- php & html form 上传
- 使用Aspose.Cell控件实现Excel高难度报表的生成(一)
- linux strace 进程跟踪
- 胃疼
- PowerShel Editor
- php curl 上传