Is there any specific reason behind using $ with variable in jQuery

后端 未结 6 573
天涯浪人
天涯浪人 2020-11-27 16:10

I know it\'s a silly question but I am a bit confused with this. For example, if I have an input with an ID: rad1, is there any difference between below lines o

6条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-27 16:46

    There's no difference. It's just a coding convention to help identify that the variable represents a jquery wrapped object.

提交回复
热议问题