What are the similarities between jQuery and Prototype? [closed]
Want开发者_运维技巧 to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this questionWhat are the similarities between jQuery and Prototype?
For example, they both have selectors, although Prototype's general selector uses $$. They both also have the .hide method. Is there a good list of the similarities?
I know you're asking for similarities but its easier to answer what the differences are (from a users point of view they aren't massively different)
Migration Tutorial
Migration Cheat Sheet - That list you were looking for.
What are the current differences between jQuery and Prototype?
Prototype is a mature framework that does a very good job shoring up browser differences and providing very well-rounded functionality. Unfortunately it is a bit heavy-handed with its changes to the default Javascript environment, and it's not seeing rapid development and doesn't have a significant plugin ecosystem.
jQuery is a newer framework that was able to leverage some of the lessons of the early javascript frameworks like Prototype to create something more modular, less obtrusive, and significantly more powerful and concise. I still love Prototype, but jQuery's DOM manipulation and plugin ecosystem is just too good to ignore anymore. If I was starting a greenfield project I'd have to go with jQuery because that seems to be where the innovation is happening (at least between those two choices).
Have you checked out this blog post at Ajaxian?
http://ajaxian.com/archives/prototype-and-jquery-a-code-comparison
精彩评论