📜  反应大写首字母 - Javascript代码示例

📅  最后修改于: 2022-03-11 15:03:07.443000             🧑  作者: Mango

代码示例2
// I think the best way is to do it using styles (it will work for any UI framework)
// JS
sometext
// CSS
.capitalize-me::first-letter {
  text-transform: capitalize;
}