A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/String/toLowerCase below:

String.prototype.toLowerCase() - JavaScript | MDN

String.prototype.toLowerCase()

Baseline Widely available

String 的 toLowerCase() 方法将该字符串转换为小写形式。

尝试一下
const sentence = "The quick brown fox jumps over the lazy dog.";

console.log(sentence.toLowerCase());
// Expected output: "the quick brown fox jumps over the lazy dog."
语法 返回值

一个新的字符串,表示转换为小写的调用字符串。

描述

toLowerCase() 方法返回将字符串转换为小写形式后的值。toLowerCase() 不会影响字符串 str 本身的值。

示例 使用 toLowerCase()
console.log("ALPHABET".toLowerCase()); // 'alphabet'
规范 浏览器兼容性 参见

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4