What does the jQuery() function in jQuery do?

后端 未结 4 650
臣服心动
臣服心动 2021-01-25 08:06

In this video there is a snippet of code that goes something like this:

if (jQuery) {jQuery(function() {
    // ...
})}

I\'ve never seen the

4条回答
  •  既然无缘
    2021-01-25 08:52

    The $ function is an alias for the jQuery function. So, they are the same.

    If you use jQuery in noConflict mode, there is only jQuery() function

提交回复
热议问题