Use Display 4.14 to call 4.13 (2nd ed.) or
Display 4.12 to call 4.11 (1st ed.).
After you finish the above, try the following
Date birthday = new Date("Jan",1,2000);
birthday.Date("Feb",1,2000);
birthday.setDate("Feb",1,2000);
birthday=new Date("Mar",1,2000);
比較不同的就是Date()這邊的定義
Demo這邊的變化
還有constructor
另外兩個則是用正確的方法
所以就可以成功呼叫
2 則留言:
nice work! Good illustrations and explanations.
歡迎參加Web 2.0 無線行動程式設計成長冬令營
張貼留言