Difference between jquery and $

前端 未结 8 1669
北荒
北荒 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:40

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

    ($ === jQuery); //true
    $.noConflict();
    ($ === jQuery); //false
    

提交回复
热议问题