开发者

JQuery code in another file

befo开发者_如何学JAVAre this I wrote all jquery-code into main fail. Now I want to move it into another js-file. The problem is that it doesn't want work correctly. Here is an error by FireBug:

$ is not defined

$(document).ready(\n

So, as I understand, I have to initialize $-var... But how?

Thanks.


Include jQuery before the file that uses it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜