Giter VIP home page Giter VIP logo

moreaboutjs's Introduction

JavaScript 进阶知识

学习了 JavaScript 这么久一直没有时间来梳理知识点,好多知识点都没有形成系统,甚至还有一些知识点都没了解过。所以我会花一段时间详细整理这些知识点,这样既可以提高自己巩固自己的知识,当然也可以帮助广大 JS 程序员日常的工(zhuang)作(bi)效率。

虽说进阶大牛需要了解高深的的知识点,但是了解细节还是很重要的,特别是基础知识一定要透彻了解,这样才能一步一个台阶达到大牛阶级。所以知识点主要分为两块:ES6 的语法JavaScript 常见设计模式

单例模式

单例模式的两个条件: 只有一个实例,全局访问

常见使用场景: 网页的对话框,数据的缓存

观察者模式

当观察的数据对象发生变化的时候,自动调用相应的函数。

常见使用场景: vue 双向数据绑定

发布-订阅模式

事件发布/订阅模式 (PubSub) 在异步编程中帮助我们完成更松的解耦,甚至在 MVC、MVVC 的架构中以及设计模式中也少不了发布-订阅模式的参与。

常见使用场景: jquery 事件触发 优点: 在异步编程中实现更深的解耦 缺点: 过多使用发布订阅模式会增加维护难度

TODO:

  • 理解递归和深度优先,广度优先搜索

运行查看

  yarn install
  yarn run serve

moreaboutjs's People

Contributors

blade-demon avatar

Stargazers

 avatar

Watchers

James Cloos avatar  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.