在WordPress中编写$而不是jQuery的这两种方法有什么区别
(function($) {
// $ Works! You can test it with next line if you like
// console.log($);
})( jQuery );
。。。我找到的here和
jQuery(function ($) {
/* You can safely use $ in this code block to reference jQuery */
});
。。。我找到的here