检查一下有没有引入jQuery的依赖 <!-- 引入jQuery的依赖--> <script src="http://libs.baidu.com/jquery/2.0.0/jquery.js"></script>