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

前端 未结 14 2115
猫巷女王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:53

    I ran into this problem also when including jQuery in my page header, not realizing the host was already including it in the page automatically. So load your page live and check the source to see if jQuery is being linked in.

提交回复
热议问题