let body = this.node.getComponent(cc.RigidBody); var mass = body.getMass(); cc.log(“mass”,mass)
需要先addChild