Javascript 面向對象

 創建構造器三種形式 <script> function test(){} var test = function(){} var test = new Function(){} </script> <script> function Point(x, y){ this.x = x; //定義一個x和y的座標 this.y = y; thi
相關文章
相關標籤/搜索