有没有人在同一个项目中使用Dojo和JQuery? [英] Has anybody used Dojo and JQuery in the same project?
本文介绍了有没有人在同一个项目中使用Dojo和JQuery?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
解决方案
使用 jQuery.noConflict();
在编写jQuery代码块
更多信息:
http://api.jquery.com/jQuery.noConflict/
阅读这篇文章:
http://www.sitepen.com/blog/2010/11/15/from-jquery-to-large-applications/
Has anybody used Dojo and JQuery in the same project? I need a Dojo object oriented part ( and nothing more ) and JQuery for easier presentation, but I am afraid of collision and name clashes. Is it possible to use both on the same page ?
解决方案
use jQuery.noConflict();
before writing jQuery code block
more information :
http://api.jquery.com/jQuery.noConflict/
read this article too:
http://www.sitepen.com/blog/2010/11/15/from-jquery-to-large-applications/
这篇关于有没有人在同一个项目中使用Dojo和JQuery?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文