cocos-creator / creator-api-docs-2.x

Host generated Cocos Creator 2.x API
https://docs.cocos.com/creator/2.4/api/en/
15 stars 25 forks source link

Document error #157

Closed aboelf closed 5 years ago

aboelf commented 5 years ago

URL : https://github.com/cocos-creator/creator-api-docs/blob/master/zh/classes/Node.md

getComponent :memo: https://github.com/cocos-creator/creator-api-docs/blob/master/zh/classes/Node.md#L134

jareguo commented 5 years ago

怎么了?

aboelf commented 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.

jareguo commented 5 years ago

感谢,已修复

aboelf commented 5 years ago

不是明显的问题,是注释上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.