Giter VIP home page Giter VIP logo

Comments (3)

licongmu avatar licongmu commented on May 24, 2024

源码分析地址是 http://www.cnblogs.com/A-dam/
作者大大可以监督我写的怎么样哈哈哈。

from flappy-pig.

keenwon avatar keenwon commented on May 24, 2024

这个无所谓,看你怎么理解了,每个组件都是一个对象,初始化的时候执行init方法。而init只是个入口,里面会执行更多的初始化方法,例如这里的添加监听。如果所有初始化方法都直接写在init里的话,第一逻辑复杂的时候init会很臃肿;第二不方便复用。

from flappy-pig.

licongmu avatar licongmu commented on May 24, 2024

嗯我尊重你的写法,所以向原作者大大确认一下XD

from flappy-pig.

Related Issues (2)

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.