$ not defined in JavaScript

后端 未结 3 1993
情歌与酒
情歌与酒 2021-01-27 00:05

Firebug is reporting that

$ is not defined [Break On This Error] $(function(){

I have a simple index.php page that does a php include to include the contents I

相关标签:
3条回答
  • 2021-01-27 00:33

    Add this before your script tag. It uses google's CDN.

    <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
    
    0 讨论(0)
  • 2021-01-27 00:33

    Are you including jQuery at the top of your script?

    0 讨论(0)
  • 2021-01-27 00:38

    Did you include the jQuery library?

    0 讨论(0)
提交回复
热议问题