Closed aboelf closed 5 years ago
怎么了?
// get sprite component. var sprite = node.getComponent(cc.Sprite); // get custom test calss. var test = node.getComponent("Test");
在 2019年11月20日,上午10:47,Jare Guo notifications@github.com 写道:
怎么了?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/cocos-creator/creator-api-docs/issues/157?email_source=notifications&email_token=AEDOEQBUWHEQGEKECTWX7H3QUSQL3A5CNFSM4JPMNQM2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEEQQDXQ#issuecomment-555811294, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEDOEQBJRSHGLGEPYVUHRQDQUSQL3ANCNFSM4JPMNQMQ.
感谢,已修复
不是明显的问题,是注释上class写成calss,
在 2019年11月20日,下午2:11,Jare Guo notifications@github.com 写道:
抱歉眼拙,请问错误在什么地方?正确的应该是什么样的?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/cocos-creator/creator-api-docs/issues/157?email_source=notifications&email_token=AEDOEQFMZOLY7IWXPYEWGHTQUTIJLA5CNFSM4JPMNQM2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEEQ23TI#issuecomment-555855309, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEDOEQELSRGFV3XRACYXG3TQUTIJLANCNFSM4JPMNQMQ.
URL : https://github.com/cocos-creator/creator-api-docs/blob/master/zh/classes/Node.md