String.prototype.toLowerCase()

翻譯不完整。 請幫助我們翻譯這篇文章!

toLowerCase() 函式会回传将字符串转换为英文小写字母后的结果。

语法

str.toLowerCase()

回传值

回传一组将原字串英文内容转换成英文小写字母后的结果。

描述

The toLowerCase() 函式会回传一组将原字符串英文内容转换成英文小写字母后的结果。 toLowerCase() 并不会影响到原字符串 str 的内容值。

范例

使用toLowerCase()

console.log('ALPHABET'.toLowerCase()); // 'alphabet'

规范

规范 状态 注解
ECMAScript 1st Edition (ECMA-262) Standard Initial definition. Implemented in JavaScript 1.0.
ECMAScript 5.1 (ECMA-262)
The definition of 'String.prototype.toLowerCase' in that specification.
Standard
ECMAScript 2015 (6th Edition, ECMA-262)
The definition of 'String.prototype.toLowerCase' in that specification.
Standard
ECMAScript (ECMA-262)
The definition of 'String.prototype.toLowerCase' in that specification.
Living Standard

浏览器相容性

Update compatibility data on GitHub
DesktopMobileServer
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung InternetNode.js
toLowerCaseChrome Full support 1Edge Full support 12Firefox Full support 1IE Full support 3Opera Full support 3Safari Full support 1WebView Android Full support 1Chrome Android Full support 18Firefox Android Full support 4Opera Android Full support 10.1Safari iOS Full support 1Samsung Internet Android Full support 1.0nodejs Full support 0.1.100

Legend

Full support  
Full support

参考