要將 JavaScript 中的字符串轉(zhuǎn)換為小寫字母,請使用 toLocaleLowerCase() 方法。
示例
您可以嘗試運(yùn)行以下代碼來了解如何在 JavaScript 中使用 toLocaleLowerCase() 方法 –
實時演示
<!DOCTYPE html> <html> <body> <script> var a = "WELCOME!"; document.write(a.toLocaleLowerCase()); </script> </body> </html>
登錄后復(fù)制
以上就是如何在JavaScript中將字符串轉(zhuǎn)換為小寫字母?的詳細(xì)內(nèi)容,更多請關(guān)注www.92cms.cn其它相關(guān)文章!