循环引用报错,TypeError: Class extends value undefined is not a constructor or null
原因是 gameFactory -> pokerCard -> gameMode-> gameFactory -> pokerCard 导致循环引用。
解决方法,不能在gameMode数据类中直接使用视图相关代码,数据层不应该使用视图层的对象。