laya 中的单例设计模式,怎么写?
private static myselfs = null; public static Getinstance():类名 { return myselfs ||= new 类名 }
Laya_XS 你括号里的 myselfs 少了个 this.
Laya_XS syntax error TS1109: [31mExpression expected.[39m 还报错