How to change camelCase to slug-case (or kabob-case) via regex in JavaScript

前端 未结 2 1324
伪装坚强ぢ
伪装坚强ぢ 2021-01-06 04:24

For some reason, this answer I found for (supposedly) how to do it in php just gives me the wrong matches. It seems to add the dash, but also replace the capital letter wit

2条回答
自定义标题
段落格式
字体
字号
代码语言
提交回复
热议问题