2014-09-25 139 views
-3

物,用JS小提琴测试JS,它似乎有很好地工作:http://jsfiddle.net/ntg7dezj/

但随后实现在网站上的代码中,JS没跑:

http://www.lamudi.com.ph/academytest/ 

有没有理由不运行?我得到这个错误,当我在Chrome中打开

JavaScript控制台
+4

'所以我可能会告诉你,你忘了包含jquery库。或者执行顺序必须是错误的。 – 2014-09-25 10:39:39

+0

你有没有在你的html中包含jquery库? – 2014-09-25 10:39:58

+0

在您的html中加入这个 Kenny 2014-09-25 10:42:21

回答

1

包括以下内容和测试

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js">

+0

这个必须在评论中 – Kenny 2014-09-25 10:43:19

0

地方你的jQuery里面的文件准备代码`$没有定义

$(document).ready(function(){ 
    //your - code - goes - here 
});