什么是JavaScript框架和图书馆之间的区别? [英] What is the difference between a JavaScript framework and a library?
问题描述
可能重复:结果
框架与工具包与图书馆
我想知道什么是一个JavaScript框架,通过使用一些〔实施例库之间的区别。
I would like to know what is the difference between a JavaScript framework and a library by using some exmaple.
例如,jQuery的,Backbone.js的和茉莉的JavaScript框架或库?为什么?
For instance, jquery, backbone.js and jasmine are JavaScript framework or library? and why?
您可以提供的JavaScript框架的某些〔实施例,并使用了句库不要打电话给我们,我们会打电话给你。
Can you provide some exmaple of JavaScript framework and a library using the sentence Don't call Us, We'll call You.
推荐答案
甚至尽管这个问题是非常主观的,我对这两个人的看法是这样的:
Even tho this question is highly subjective, my personal opinion about those two is this:
-
框架:这说明怎么做,你应该present您code的给定结构。 pretty很像一个code-模板,以及一些帮手,构造等方式解决/简化特定问题或将您的架构中的秩序。例如,骨干, requireJS , socketIO 的。
Framework: this describes a given structure of "how" you should present your code. Pretty much like a code-template, along some helpers, constructors etc. to solve/simplify a specific problem or bring your architecture in "order". Examples, "Backbone", "requireJS", "socketIO".
图书馆:是一个完整的工具包,它在高度抽象不同的层,如浏览器/ DOM模型/等也作为一个很好的工具包,它提供了大量的工具和社交空间工作有,这在一般情况下,简化您的编码经验。示例的的jQuery , MooTools的的, YUI 的
Library: Is an entire toolkit which highly abstracts different layers, like browsers / DOM models / etc. Also as a good toolkit, it offers a lot of tools and neat stuff to work with, which in general, simplify your coding experience. Examples "jQuery", "MooTools", "YUI"
这篇关于什么是JavaScript框架和图书馆之间的区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!