我试图解释VS文档类代码编写时间轴代码之间的差异,所以到目前为止,我有:VS文档类代码
Timeline code:
- doesn't require a package and class declaration
Document Class code:
- requires a package and class declaration
Timeline code:
- starts working on the top-most line
Document Class Code:
- starts working from the constructor function
Timeline code:
- loops, conditionals and event listeners can be **outside** of a function
Document Class Code:
- loops, conditionals and event listeners must be **inside** a function
这些是正确的,是有没有什么东西会绊倒正在进行转型的人吗?
谢谢,这太棒了。我想教一个只知道时间线代码的人在Document类中编写代码,但这已经很长时间了,所以我已经忘记了这些差异...... – redconservatory 2011-02-06 18:34:13