mirror of
https://github.com/zuiidea/antd-admin
synced 2026-11-02 07:53:59 +00:00
bread
This commit is contained in:
+13
-1
@@ -2,8 +2,20 @@ import config from './config'
|
||||
import menu from './menu'
|
||||
import request from './request'
|
||||
|
||||
// 连字符转驼峰
|
||||
String.prototype.hyphenToHump = function () {
|
||||
return this.replace(/-(\w)/g, function () {
|
||||
return arguments[1].toUpperCase()
|
||||
})
|
||||
}
|
||||
|
||||
// 驼峰转连字符
|
||||
String.prototype.humpToHyphen = function () {
|
||||
return this.replace(/([A-Z])/g,"-$1").toLowerCase()
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
config,
|
||||
menu,
|
||||
request,
|
||||
request
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user