全部小写
全部大写
首字母大写
不区分大小写
句子
驼峰命名法
帕斯卡命名法
常量命名法
点分隔命名法
首字母大写命名法
参数命名法
路径命名法
蛇形命名法
嘲讽式命名法

说明

中文 英语 Hello Word 示例 说明
全部小写 Lowercase hello world 所有字母小写
全部大写 Uppercase HELLO WORLD 所有字母大写
首字母大写 Capitalcase Hello World 每个单词首字母大写
不区分大小写 Nocase hello world 不区分大小写,所有字母小写
句子 Sentencecase Hello world 仅句首首字母大写,其余小写,类似正常句子
驼峰命名法 Camelcase helloWorld 首字母小写,后续单词首字母大写
帕斯卡命名法 Pascalcase HelloWorld 每个单词首字母均大写
常量命名法 Constantcase HELLO_WORLD 全大写,单词间用下划线分隔
点分隔命名法 Dotcase hello.world 全小写,单词间用点分隔
单词首字母大写命名法 Headercase Hello-World 每个单词首字母大写,单词间用连字符分割
参数命名法 Paramcase hello-world 全小写,单词间用连字符分隔,常用于 URL 或 HTML 参数
路径命名法 Pathcase hello/world 全小写,单词间用斜杠分隔,类似文件路径
蛇形命名法 Snakecase hello_world 全小写,单词间用下划线分隔
嘲讽式命名法 Mockingcase hElLoWoRlD 用于模拟“故意拼写混乱”的格式

0 条用户评论

0 / 300