Is jquery a javascript library or framework?

Here, jquery is mentioned under framework category: http://en.wikipedia.org/wiki/Comparison_of_JavaScript_frameworks

Is jquery a javascript library or framework?


A library. According to the homepage, and which I agree with.

A framework is something that usually forces a certain way of implementing a solution, whereas jQuery is just a tool to make implementing what you want to do easier.


jQuery:写少,多做,JavaScript


For sure, it's a javascript library. But about being a framework or not,I just think it's not a framework. Have a look on wikipedia definition of software-framework:

It is a collection of software libraries providing a defined application programming interface.

And jQuery is just a single library. After that it says:

Frameworks contain key distinguishing features that separate them from normal libraries:

  • inversion of control - In a framework, unlike in libraries or normal user applications, the overall program's flow of control is not dictated by the caller, but by the framework.
  • So, I think it's not a framework.

    链接地址: http://www.djcxy.com/p/528.html

    上一篇: 在jQuery中添加表格行

    下一篇: 是jQuery的JavaScript库或框架?