Use single quote or double quote for strings in EL

前端 未结 1 1942
一整个雨季
一整个雨季 2021-01-11 11:06

    

        
相关标签:
1条回答
  • 2021-01-11 11:12

    It's perfectly fine. It's also the convention I use: single quotes for strings in EL. It's not only better readable, but it's also friendly for syntax highlighting.

    Using double quotes is valid, but harder to interpret when nested in a HTML attribute which is by itself also double quoted.

    0 讨论(0)
提交回复
热议问题