How JavaScript uses the capitalize function
This article mainly introduces JavaScript how to use the capitalize function, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let Xiaobian take you to understand.
Capitalize: the first uppercase of a string
Function capitalize (str) {return str.charAt (0). ToUpperCase () + str.slice (1)} / / abc = = > Abc// uses the memory function let _ capitalize = cached (capitalize) to thank you for reading this article carefully. I hope the article "how JavaScript uses the capitalize function" shared by the editor will be helpful to you. At the same time, I also hope you will support us, pay attention to the industry information channel, and more related knowledge is waiting for you to learn!