Comments (3)
源码分析地址是 http://www.cnblogs.com/A-dam/
作者大大可以监督我写的怎么样哈哈哈。
from flappy-pig.
这个无所谓,看你怎么理解了,每个组件都是一个对象,初始化的时候执行init
方法。而init
只是个入口,里面会执行更多的初始化方法,例如这里的添加监听。如果所有初始化方法都直接写在init里的话,第一逻辑复杂的时候init
会很臃肿;第二不方便复用。
from flappy-pig.
嗯我尊重你的写法,所以向原作者大大确认一下XD
from flappy-pig.
Related Issues (2)
- 源码中计算跳跃高度的公式有些小疑问 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flappy-pig.