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
用 .extend 创建的多层子类中,使用 .parent(name) 调用父类中方法时,会因为 this 一直是新建出来的实例,造成死循环的问题。
.extend
.parent(name)
this
解决方法:
The text was updated successfully, but these errors were encountered:
目前我们只支持一层extend。
extend
在feature/ng分支上,是支持多层extend的,源码是在这里。
feature/ng
另外,在这个分支上,.parent(name)方法的实现也做了简化,并更新为.$parent(...)。实现方案是你提到的2
.$parent(...)
Sorry, something went wrong.
了解了 多谢
No branches or pull requests
用
.extend
创建的多层子类中,使用.parent(name)
调用父类中方法时,会因为this
一直是新建出来的实例,造成死循环的问题。解决方法:
The text was updated successfully, but these errors were encountered: