但是,当它出现在托管引用类类型的声明部分中时,将其视为该类声明的上下文中的关键字。
However, when it occurs within the declaration portion of a managed reference class type, it is treated as a keyword within the context of that class declaration.
这意味着this关键字可以访问在该上下文中声明的任何对象(包括函数)。
This means the this keyword can then access any objects (including functions) that have been declared at that context.
有关static关键字需要注意一点,它的工作方式与在非静态上下文中的工作方式不同。
One thing to note about the static keyword is that it doesn't work the same as how this works in the nonstatic context.
方法getUserInfo1()将返回一个Map对象,然后将把该对象存储到关键字为user 的上下文中。
The method getUserInfo1() returns a Map object, which you then store into the context with the key user.
方法getUserInfo1()将返回一个Map对象,然后将把该对象存储到关键字为user 的上下文中。
The method getUserInfo1() returns a Map object, which you then store into the context with the key user.
应用推荐