[]为啥静态变量name不能定义
src/view/GFHomePageView.ts(22,16): error TS2699: Static property 'name' conflicts with built-in property 'Function.name' of constructor function 'GFHomePageView'.
代码如下:
export class GFHomePageView extends ui.GFGameHomeUI {
static name = "homepageview";
static moreBgNodeName = "morebgnode";
static diamondList: any;
static clickedWeixinClose:boolean = false;
代码如下:
export class GFHomePageView extends ui.GFGameHomeUI {
static name = "homepageview";
static moreBgNodeName = "morebgnode";
static diamondList: any;
static clickedWeixinClose:boolean = false;
没有找到相关结果
已邀请:
要回复问题请先登录
4 个回复
godqueue
赞同来自:
cuixueying
赞同来自:
godqueue
赞同来自:
godqueue
赞同来自:
C盘的log里没有任何错误的信息。。