js的toLowerCase方法用法实例
2018-10-12 14:04
525 查看
本文实例讲述了js的toLowerCase方法用法。分享给大家供大家参考。具体分析如下:
定义和用法:
toLowerCase() 方法用于把字符串转换为小写。
语法:
stringObject.toLowerCase()
返回值:
一个新的字符串,在其中 stringObject 的所有大写字符全部被转换为了小写字符。
实例:
在本例中,"Hello world! Jb51.Net" 将以小写字母来显示:
<script type="text/javascript">
var str="Hello World! Jb51.Net"
document.write(str.toLowerCase())
</script>
效果如下:
hello world! jb51.net
希望本文所述对大家的javascript程序设计有所帮助。
您可能感兴趣的文章:
相关文章推荐
- js的toLowerCase方法用法实例
- js中toLowerCase()方法的作用
- JS中的字符串是对象,包含许多与字符串数据交互的方法(lengh,charAt(),toUpperCase(),toLowerCase())
- JavaScript字符串对象toLowerCase方法入门实例(用于把字母转换为小写)
- js中toLowerCase()方法的作用
- JavaScript字符串对象toLowerCase方法入门实例(用于把字母转换为小写)
- JS中string方法中常用方法之十:String.prototype.toLocaleLowerCase()
- JS toLowerCase()方法 toUpperCase()方法
- JS中string方法中常用方法之十二:String.prototype.toLowerCase()和String.prototype.toUpperCase()
- js对文字的修饰 big() small() fixed() toUpperCase() toLowerCase()
- js中prototype用法实例(为数组添加contains方法)
- JS:1.8字符串(string)对象(length,indexOf(),lastIndexOf(),replace(),match(),toUpperCase(),toLowerCase())
- JavaScript字符串对象toUpperCase方法入门实例(用于把字母转换为大写)
- 字符串字符JS:1.8,字符串(string)对象(length,indexOf(),lastIndexOf(),replace(),match(),toUpperCase(),toLowerCas
- JavaScript toLowerCase() 方法 把字符串转换为小写
- 动手动脑之Stringequals()方法,整理String类的Length(),charAt(),getChars(),replace(),toUpperCase(),toLowerCase(),trim(),toCharArray()使用说明
- 软件测试if else路径开源代码java中String.java中的toLowerCase方法
- jquery-ui.min.js:5 Uncaught TypeError: b.nodeName.toLowerCase is not a function
- js的toUpperCase方法用法实例
- JavaScript中的toLocaleLowerCase()方法使用详解