can I have a div with id as number?

后端 未结 7 2093
失恋的感觉
失恋的感觉 2020-11-22 10:13

Can I have a div with id as number?

eg

相关标签:
7条回答
  • 2020-11-22 10:52

    From a maintainability standpoint this is a bad idea. ID's should be at least somewhat descriptive of what they represent. Prefix it with something meaningful to be compliant with what others have already answered with. For example:

    <div id ="phoneNumber_12" > </div>
    
    0 讨论(0)
提交回复
热议问题