TypeError: 'undefined' is not a function (evaluating '$(document)')

前端 未结 14 2006
猫巷女王i
猫巷女王i 2020-11-22 07:13
  1. I\'m using a WordPress site.
  2. I\'m including this script in the header.

When the script loads, I get this error:

TypeErro

14条回答
  •  春和景丽
    2020-11-22 07:58

    Two things:

    1. Be sure that you have jQuery library added, before your $(document).
    2. Then just change all "$" with: jQuery , as the previous comments.

提交回复
热议问题