仪表盘
版本库
文件存储
活动
搜索
登录
main
/
pms-vue
概况
操作记录
提交次数
目录
文档
分支
对比
blame
|
历史
|
原始文档
first commit
tj
2025-06-05
bba272999cc546f65781bf3d20245a3f819af67f
[pms-vue.git]
/
script
/
lib
/
util.js
1
2
3
4
5
6
7
8
const came = str => `${str}`.replace(/-\D/g, match => match.charAt(1).toUpperCase())
const hyphenate = str => `${str}`.replace(/[A-Z]/g, match => `-${match.toLowerCase()}`)
module.exports = {
came,
hyphenate,
}