开发者

javascript library conflict

I'm working with a project that uses scriptaculous. I want to add some extra features and I found a jquery plugin that can help me with that. So to use the jquery plugin, I have to add jquery, but the project has scriptaculous. I will add the code that calls the plugin as inline script and will link to jquery and the jquery plugin. Should I expect any conflicts? Is it really bad to have 2 libraries, and is it known to norma开发者_如何转开发lly break the code. The plugin requires that I study it first before I know how to use it exactly, so I thought I'd ask before learning it the hard way.


Enabling no-conflict mode in jQuery should help with any problems that may arise, though problems are unlikely.


It's not like it's never been done before. There's no reason for there to be any conflicts, ideally you can use both. However, you should consider if what was done in Scriptaculous can be done in jQuery so as to only have on lib.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜