can I have a div with id as number?

后端 未结 7 2077
失恋的感觉
失恋的感觉 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:

提交回复
热议问题