WordPress附加js报错 在WordPress代码中直接写入jQuery会提示以下错误(已经正确引用了jQuery): TypeError: $ is not a function 需要修改一下: (function($){ //原来的代码 })(jQuery);