开发者

when to use the prototype js framework

I post this post not to make a comparsion between prototype and jquery,I just want to get some suggestions.

In our application we want to provide a base javascript lib for other people use. So we may have to create some classes,may use the extend/create functions.

However the jquery is so wonderful when do some operation with the dom element,so I want to know when to use the prototype and when to use jquery?

In our project,which is better? Since we do not use them both at开发者_StackOverflow社区 the same time,the prototype seems do not play nice with other js libs.


They both provide the same functionality more or less, I personally prefer jQuery for having a more "logical" interface and very easy to extend.

check http://blog.jeremymartin.name/2008/02/building-your-first-jquery-plugin-that.html to see how to write plugins.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜