Comparison between prototype and jquery

Jiedao jdon 2021-05-04 14:53:34
comparison prototype jquery

In terms of time ,Prototype.js Than Jquery Good morning! , The mainstream in China is Jquery, I think it may be related to domestic AJAX A little behind foreign countries , Of course, choose to come out after comparison 、 Relatively new Jquery.

I personally started with prototype.js Starting with , Include JiveJdon3.6 Versions are based on it ,Jquery I've been paying attention to it , It is found that the two grammars are quite similar ,prototype.js Closer to the Javascript style , and Jquery Be concise in design .

Abroad 2007 There was an article about jQuery and Prototype Made a comparison :

Why I moved from Prototype to jQuery:

In my submission JQuery The main advantages are :Jquery yes Behavior driven development (BDD) Behavior driven development . Use JQuery Can be html The behavior of elements starts from html Separate from , To achieve the so-called MVC J The pattern of ,View yes html, and J yes Jquery.

As for the others mentioned in the article Jquery advantage ,prototype.js Also have , such as Chain:



.append("<p>Action has been executed successfully")




.invoke('observe', 'focus', onFocus)

.invoke('observe', 'blur', onBlur)

chain The usage is simple , But it's not easy to understand .

In the following article , The author points out how to use it more simply Prototype:

For example, the common AJAX grammar :

With no arguments :new Ajax.Request('blah.php')

With parameters :new Ajax.Request('ninja.php', {

parameters: {

weapon1: 'foo',

weapon2: 'bar'



Get the value of a field :var woot = $F('bar')

Modify the value of a field :$('coolestWidgetEver').update('some nifty content')

Set up CSS:


height: '100px',

background: '#ffc'


The most famous argument is 2007 Year of Prototype and jQuery: A code comparison

Use PPT Compare the two , There are so many people talking about it .

however ,Prototype There is a famous windows The effect is abbreviated as PWC(Prototype Window Class):

Not yet Jquery Similar substitutions have been found in , Especially the effect of this page :

Claim to be able to replace PWC Of JqModel:

The window effect is better than PWC It's much worse ,PWC It's almost as good as Windows Desktop effects , This forum is for PWC effect .

Some people say : be based on Prototype More suitable to do some application framework library ; and Jquery It's application-oriented , I agree with .

[ The quilt banq On 2009-08-12 14:44 A modified ]

本文为[Jiedao jdon]所创,转载请带上原文链接,感谢

  1. Two way linked list: I'm no longer one-way driving
  2. Vue event and form processing
  3. Reactive TraderCloud实时外汇开源交易平台
  4. Reactive tradercloud real time foreign exchange open source trading platform
  5. Node.js REST API的10个最佳实践
  6. Ten best practices of node.js rest API
  7. Fiddler advanced usage
  8. Process from Vue template to render
  9. Promise up (asynchronous or synchronous)
  10. Principle and implementation of promise
  11. Vs code plug in sharing - run code
  12. Vue practical notes (1) introduction of Ant Design
  13. Vue actual combat notes (2) introduction of element plus
  14. Introduction to webpack
  15. Webpack construction process
  16. Vue notes
  17. The experience and lessons of moving from ruby megalith architecture to go microservice
  18. Using leancloud to add artitalk module to hexo blog
  19. Implementation of chrome request filtering extension
  20. Detailed introduction of beer import declaration elements and label quarantine [import knowledge]
  21. Gallop workflow engine design series 01 process element design
  22. VUE移动端音乐APP学习【十六】:播放器歌词显示开发
  23. Vue Mobile Music App learning [16]: player lyrics display development
  24. jquery cookie
  25. jquery cookie
  26. 体面编码之JavaScript
  27. JavaScript for decent coding
  28. React17 系统精讲 结合TS打造旅游电商平台
  29. React17 system combined with TS to build tourism e-commerce platform
  30. 2021-05-04 hot news
  31. HttpSession对象与Cooike的关系 以及 Cookie对象构造函数问题
  32. gRPC-Web:替代REST的gRPC的Javascript库包
  33. The relationship between httpsession object and cooike and the construction of cookie object
  34. Grpc Web: a JavaScript library package to replace rest grpc
  35. Building reactive rest API with Java - kalpa Senanayake
  36. PDF转HTML工具——用springboot包装pdf2htmlEX命令行工具
  37. Pdf to HTML tool -- Wrapping pdf2htmlex command line tool with springboot
  38. PDF转HTML工具——用springboot包装pdf2htmlEX命令行工具
  39. Pdf to HTML tool -- Wrapping pdf2htmlex command line tool with springboot
  40. Vue.js比jQuery更容易学习
  41. Node.js的Reactor模式 与异步编程
  42. Vue. JS is easier to learn than jQuery
  43. Reactor mode of node.js and asynchronous programming
  44. 详解JavaScript中的正则表达式
  45. Explain regular expressions in JavaScript
  46. 详解JavaScript中的正则表达式
  47. Explain regular expressions in JavaScript
  48. JS: closure
  49. Write your own promise in promises / A + specification
  50. Analysis of the core mechanism of webpack from loader, plugin to egg
  51. On the import and export of webpack
  52. Interpretation of lodash source code (2)
  53. Hexo series (5) writing articles
  54. 有人用过JMeter或用HttpUnit写过测试吗????
  55. Has anyone ever used JMeter or written tests in httpUnit????
  56. JavaScript异步编程4——Promise错误处理
  57. Leetcode 1846. Reduce and rearrange the largest element of an array
  58. JavaScript asynchronous programming 4 -- promise error handling
  59. SQLite是一种经典的无服务器Serverless
  60. 通过Spring Boot Webflux实现Reactor Kafka