Get Getter Function in Javascript

前端 未结 4 1497
时光取名叫无心
时光取名叫无心 2020-12-29 06:23

In JavaScript there is the possibility to create getters and setters the following way:

function MyClass(){
 var MyField;
 this.__defineGetter__(\"MyField\",         


        
4条回答
提交回复
热议问题