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
私有是在类的实例上的概念。只能在当前类里访问到。 静态是只不需要new一个实例,这些属性存在于类本身上面而不是类的实例上
new
class A{ static name(){ return 'lmh' } } A.name()
The text was updated successfully, but these errors were encountered:
No branches or pull requests
私有是在类的实例上的概念。只能在当前类里访问到。
静态是只不需要
new
一个实例,这些属性存在于类本身上面而不是类的实例上The text was updated successfully, but these errors were encountered: