Difference between jquery and $

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

    when .noConflict() is called, selector like $('') is no longer working to ensure compatibility with other framework such as Prototype. at that time jQuery('') is used instead.

    Reference: jQuery.noConflict()

    To better illustrate the idea, here is an example obtained from the reference link:

    
    

提交回复
热议问题