对象和数组(Objects and Arrays) 的对象就是一些"键-值"对的集合(An object is a collection of named values.
基于28个网页-相关网页
当对当前类启用跟踪时,清单7就创建了这些对象和数组。
Listing 7 creates these objects and arrays when trace is enabled for the current class.
这对于基本功能已经很不错了,但是在实际中,您可能需要返回更复杂的类型,比如对象和数组。
This is fine for basic functions, but in reality, you're likely to need to return complex types such as objects and arrays.
原则上,创建此类代码不是特别困难,但可能让人感到有些枯燥无味,而且在编写时也容易出错,特别是在数据对象比较大并包含嵌入的对象和数组时。
In principle, creating such code is not particularly difficult, but can be somewhat tedious and error prone to write, especially if the data object is large and contains nested objects and arrays.
应用推荐