开发者

JQuery code in another file

开发者 https://www.devze.com 2022-12-10 03:26 出处:网络
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.

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

精彩评论

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