JavaScript中的toLocaleLowerCase()方法使用详解
此方法用于字符字符串转换为小写,同时尊重当前的语言环境。对于大多数语言,这与toLowerCase的返回值一样。
语法
string.toLocaleLowerCase( )
下面是参数的详细信息:
返回值:
字符串转换成小写使用当前语言环境。例子:
<html> <head> <title>JavaScript String toLocaleLowerCase() Method</title> </head> <body> <script type="text/javascript"> var str = "Apples are round, and Apples are Juicy."; document.write(str.toLocaleLowerCase( )); </script> </body> </html>
这将产生以下结果:
apples are round, and apples are juicy.
JavaScript中的anchor()方法使用详解
此方法创建一个用作超文本目标的HTML锚。语法string.anchor(anchorname)下面是参数的详细信息:anchorname:定义了锚的名称返回值:返回其锚标记的字符串例子:
简介JavaScript中toUpperCase()方法的使用
该方法返回调用字符串值转换为大写。语法string.toUpperCase()下面是参数的详细信息:NA返回值:返回表示指定对象的字符串例子:htmlheadtitleJavaScriptStringtoUp
在Javascipt中处理字符串之big()方法的使用
此方法创建一个用作超文本目标的HTML锚。语法string.anchor(anchorname)下面是参数的详细信息:anchorname:定义了锚的名称返回值:返回其锚标记的字符串例子:
编辑:568数据
标签:字符串,详细信息,方法,返回值,语法