摘要: 方式一:函数 function private(){ let a='私有变量'; this.getName=function(){ return a; } } let obj=new private(); console.log(obj.a) //undefine console.log(obj.g 阅读全文
posted @ 2021-08-16 10:09 .爬行的蜗牛 阅读(323) 评论(0) 推荐(0) 编辑
Document