开发者

unable to use jQuery Live

I have my application using jQuery heavily. The problem is that we started with jQuery 1.3.x and now we have a case where we need to use jQuery live(), which is available only in 1.4.x or greater. Replacing jQuery 1.3.x may cause backward compatibility issues. Can somebody suggest how开发者_如何转开发 can I use both libraries, or some other way?


If you don't want to use the noConflict idea that JohnP suggested, there is a 'livequery' plugin out there that works for jQuery 1.3:

http://docs.jquery.com/Plugins/livequery


You can use jquery's .noConflict() method to use both : http://api.jquery.com/jQuery.noConflict/

Use .noConflict and assign the new library to another variable and use in your page.

However, I suggest that you do it on a page by page basis, if possible and just remove the old code if it doesn't break anything.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜