Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
351 views
in Technique[技术] by (71.8m points)

javascript - 将JavaScript字符串全部转换为小写吗?(Convert JavaScript String to be all lower case?)

How can I convert a JavaScript string value to be in all lower case letters?

(如何将JavaScript字符串值转换为所有小写字母?)

Example: "Your Name" to "your name"

(示例:从“您的名字”到“您的名字”)

  ask by Derek translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
var lowerCaseName = "Your Name".toLowerCase();

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...