标签:字符串数组 $1 replace book create 大写 split 字符串 ace
> "createTechBook".replace( /([A-Z])/g, ‘-$1‘)
<- "create-Tech-Book"
> "createTechBook".split(/(?=[A-Z])/)
<- ["create", "Tech", "Book"]
标签:字符串数组 $1 replace book create 大写 split 字符串 ace
原文地址:https://www.cnblogs.com/muxiWu/p/8862058.html