/** * 下划线转驼峰 * @param string * @returns {*} */ export function underLine2CamelCase(string) { return string.replace(/_([a-z])/g, function(all, letter) { return letter.toUpperCase() }) }
posted on 2024-09-10 10:07 芮艺 阅读(5) 评论(0) 编辑 收藏 举报
Powered by: 博客园 Copyright © 2024 芮艺 Powered by .NET 9.0 on Kubernetes