0

findOne 方法应该如何正确使用?(http://wellcaffeinated.net/PhysicsJS/docs/#Physics-world-prototype-findOne

此代码返回错误:Uncaught TypeError: Cannot read property 'label' of undefined

var theBall = world.findOne([{ label: ball }];
4

1 回答 1

1

我认为它不需要一个数组而是一个对象:world.findOne({ label: ball });

于 2016-02-24T16:07:06.807 回答