可否在同一个对象中注入同名的实例函数和静态函数 #26
-
不知是否可以在同一个类中导入两个函数,一个function一个instanceFunction,但两者导入在脚本引擎里的名字相同 |
Beta Was this translation helpful? Give feedback.
Answered by
LanderlYoung
May 20, 2021
Replies: 1 comment
-
不建议这么做。 具体要看backend实现,现在JS是把instance挂到prototype里,lua是metaTavle里。 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
yqs112358
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
不建议这么做。
具体要看backend实现,现在JS是把instance挂到prototype里,lua是metaTavle里。