摘要: class test extends egret.DisplayObjectContainer { /** * 类的创建 */ //属性 name: string; age: number; ts: test; //可传参的构造方法 public constructor(name: string, age: number) { super(); this.name ... 阅读全文
posted @ 2019-03-19 13:35 icon_sunny 阅读(694) 评论(0) 推荐(0)
摘要: class TimerShow extends egret.DisplayObjectContainer{ private now = new Date(); //当前日期 private nowDayOfWeek = this.now.getDay(); //今天本周的第几天 private nowDay = this.now.getDate(); //当前日 ... 阅读全文
posted @ 2019-03-19 13:33 icon_sunny 阅读(930) 评论(0) 推荐(0)