kingBook

导航

2020年12月4日 #

TypeScript set和get

摘要: class Person { constructor() { } private _name:string; public get name():string{ return this._name; } public set name(name:string){//不能定义返回类型,如: ":voi 阅读全文

posted @ 2020-12-04 18:01 kingBook 阅读(1203) 评论(0) 推荐(0) 编辑

unity Screen.orientation

摘要: public static ScreenOrientation orientation ; Project Settings → Player → Resolution and Presentation → Default Orientation,设置为:Auto Rotation 时,在进入应用且 阅读全文

posted @ 2020-12-04 14:57 kingBook 阅读(641) 评论(1) 推荐(0) 编辑