开发者

Where to put jQuery code for DOM manipulation in Codeigniter

开发者 https://www.devze.com 2023-04-09 18:14 出处:网络
I have some jQuery code that deals with DOM manipulation, simple stuff like fade开发者_如何学CIn(), etc...

I have some jQuery code that deals with DOM manipulation, simple stuff like fade开发者_如何学CIn(), etc...

Is the best practice to put

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

and any script associated with manipulating the HTML on a CI view right on the view.php file?

Thanks


That's eminently reasonable. If you're using jQuery you should probably wrap your manipulation code in a ready call.

0

精彩评论

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