1. All timeline vars right after imports. Use var, and type your data.所有的時間軸變數在匯入語句後申明,使用VAR關鍵字以及所有的資料2. ALL code within functions. ALL code. NO stray statements on the timeline. Sometimes when you are just messing around, you"ll wind up with a mishmash of functions and statements. Gather up all those loose statements and put them into functions.所有的程式碼包含在函數里,是的所有的程式碼,時間軸上沒有直接的程式碼段,如果有時候你確實混亂的不行了,收集那些重複了很多次的程式碼片段將他們封裝成函式【這一點個人感覺很有技術含量的一個事情】3. All the statements that are just there to set things up go into an init function.所有用來準備的程式碼封裝到INIT函數里
1. All timeline vars right after imports. Use var, and type your data.所有的時間軸變數在匯入語句後申明,使用VAR關鍵字以及所有的資料2. ALL code within functions. ALL code. NO stray statements on the timeline. Sometimes when you are just messing around, you"ll wind up with a mishmash of functions and statements. Gather up all those loose statements and put them into functions.所有的程式碼包含在函數里,是的所有的程式碼,時間軸上沒有直接的程式碼段,如果有時候你確實混亂的不行了,收集那些重複了很多次的程式碼片段將他們封裝成函式【這一點個人感覺很有技術含量的一個事情】3. All the statements that are just there to set things up go into an init function.所有用來準備的程式碼封裝到INIT函數里