Difference between jquery and $

前端 未结 8 1767
北荒
北荒 2021-01-02 14:09

I did heavy use of jquery on my php project. But on some page the $ is not working, so I have to use jquery. For example:

jQuery(\'#mycarousel\'         


        
相关标签:
8条回答
  • 2021-01-02 14:38

    The $ represents the jQuery Function, and is an alias for jQuery

    0 讨论(0)
  • 2021-01-02 14:40

    The simplest possible console experiment which isslustrates what has already been told:

    ($ === jQuery); //true
    $.noConflict();
    ($ === jQuery); //false
    
    0 讨论(0)
提交回复
热议问题