We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
class ChatRemote { test() { } aa = "1"; } var chat = new ChatRemote(); for(var n in chat){ console.log("ff",n); }
test涵数,用for in 遍历不出
The text was updated successfully, but these errors were encountered:
实在不想写prototype,最后在constructor里面手动注册了方法。。。。。
Sorry, something went wrong.
可以关注下pomelo的typescript实现,完美解决了你遇到的问题。 Pinus Github传送门
需要将类的函式都设定enumerable为true. 这部分可以先写好es6 class, 再写一个辅助函式将类的每个函式添加enumerable为true.
No branches or pull requests
test涵数,用for in 遍历不出
The text was updated successfully, but these errors were encountered: