ES6 String对象方法toLowerCase()
ES6 String对象方法toLowerCase()
此方法把指定的字符串转换成小写格式.
语法
string.toLowerCase( )
返回值
返回转换后的小写形式字符串
例子
var str = "Apples are round, and Apples are Juicy."; console.log(str.toLowerCase( ))
输出
apples are round, and apples are juicy.
此方法把指定的字符串转换成小写格式.
string.toLowerCase( )
返回转换后的小写形式字符串
var str = "Apples are round, and Apples are Juicy."; console.log(str.toLowerCase( ))
apples are round, and apples are juicy.