摘要: /** * 驼峰转下划线 */ function replaceUppercaseWithUnderscoresAndLowercase (str) { return str.replace(/[A-Z]/g, (match) => `_${match.toLowerCase()}`) } cons 阅读全文
posted @ 2024-11-27 10:17 岁月记忆 阅读(61) 评论(0) 推荐(0)