NIUCLOUD是一款SaaS管理后台框架多应用插件+云编译。上千名开发者、服务商正在积极拥抱开发者生态。欢迎开发者们免费入驻。一起助力发展! 广告
字段访问通过点操作符来表示,点号后跟字段的名称。 > Field access is expressed by using the dot . followed by the name of the field. ~~~ object.fieldName ~~~ 这个语法同样用于访问包中的类型,形式为 pack.Type 。 > This syntax is also used to access types within packages in the form of pack.Type. 类型检查器确保一个被访问的字段实际上存在,并可以应用根据字段的性质进行转换。如果一个字段访问是模糊的,理解解析顺序(第3.7.3)可以提供帮助。 > The typer ensures that an accessed field actually exist and may apply transformations depending on the nature of the field. If a field access is ambiguous, understanding the resolution order (3.7.3) may help.