我总是在 Firefox (3.6.14) 中遇到以下异常:
TypeError: Object.create is not a function
这很令人困惑,因为我很确定它是一个函数,并且代码在 Chrome 上按预期工作。
负责此行为的代码行如下:
Object.create( Hand ).init( cardArr );
Object.create( Card ).init( value, suit );
如果有人想查看所有代码,它来自扑克库 gaga.js:https ://github.com/SlexAxton/gaga.js
也许有人知道如何让它在 Firefox 中运行?