oop編程

1.代碼重用 2.封裝      1.代碼重用      2.內部數據安全      3.只能經過預留的接口(api)進行訪問 var f=function(){     this.name="qiaogege"      var age=18api    this.hover=function(){     alert(age) } } var a=new f() console.log(a.n
相關文章
相關標籤/搜索