标签:rip vat return cto span script ons var div
class Person { public name:string; private age:number; constructor(name:string,age:number){ this.name = name; this.age = age; } public run(){ return this.name+this.age } } var p = new Person(‘张三‘,40); p.run(); p.name;
标签:rip vat return cto span script ons var div
原文地址:https://www.cnblogs.com/jentary/p/9889994.html