at.*_*at. 4 forms http url-parameters web http-parameters
我熟悉在 URL 路径中使用连字符分隔单词的约定。参数名称如何,例如在 a 中<form>
:
<form>
<input name="my_special_field">
</form>
Run Code Online (Sandbox Code Playgroud)
那更好还是my-special-field
?我见过谷歌在分析中使用下划线utm_campaign
和其他参数名称。下划线读起来会好一些,并且允许在名称 ( field_for_5-16-17
) 中偶尔使用连字符。但是连字符肯定是 URL 路径的约定。
在 HTTP 参数名称中分隔单词的约定是什么?
归档时间: |
|
查看次数: |
6833 次 |
最近记录: |