Giter Site home page Giter Site logo

insu-core-sys's Introduction

1.1库(lib)的特点

  • 是针对特定问题的解答,具有专业性
  • 不控制应用的流程
  • 被动的被调用

例如:当年最流行的 jQuery 这货是用来做HTML元素选择操作、css和动画、事件绑定、ajax封装等所有网页基本业务的,其中很多设计特点,和方法名称,都被业内完全认可的,跟jQuery类似的库有很多:prototype,mootools,国内也有很多公司做了自己的类似的库。

模块化的库:最流行的当属requireJs和seaJs

图表制作库:矢量图库highcharts,百度的canvas图库echarts等

js模板引擎:js进行复杂的HTML拼装的时候。可能需要使用js模板引擎,这样的库也是数不胜数,handlebars,Mustache,jade等

1.2框架(frameword) 的特点

  • 具有控制反转(inverse of control)的功能

  • 决定应用程序的生命周期

  • 一般来说,集成了大量的库

  • 决定应用程序的生命周期

由下图所示,框架会在特定的时间要求程序执行某段代码。框架决定了什么时候调用库,决定了什么时候要求代码去执行特定功能

而实际上,一个库有时也可以称之为框架,而框架里面集成的方法称之为库 框架和库的区别不由实际大小决定,而由思考角度来决定。框架和库实际上可以统称为**解决方案**

insu-core-sys's People

Contributors

gitbook-bot avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.