Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 559 Bytes

5.6.对象声明.md

File metadata and controls

18 lines (13 loc) · 559 Bytes

5.6.对象声明

对象声明通过一个开口的花括号,后跟键值对,通过逗号分隔,然后,使用闭口的花括号结束。

Object declaration begins with an opening curly brace { after which key:value-pairs separated by comma , follow, and which ends in a closing curly brace}.

{ 
    key1:value1, 
    key2:value2,
    ... 
    keyN:valueN 
} 

对象声明更多的细节在匿名结构(第2.5节)中详述。

Further details of object declaration are described in the section about anonymous structures (2.5).