[英]What is the need of 'goog.structs' when 'goog.object' is there?
What is it that goog.structs
provides which goog.object
does not? goog.structs
提供了哪些goog.object
没有提供什么? I went through the documentation but didn't find anything satisfying, except the top line of goog.structs
saying: 我浏览了文档,但没有发现任何令人满意的内容,除了
goog.structs
的第一行说:
Generics method for collection-like classes and objects.
类似于集合的类和对象的泛型方法。
What is a collection-like class or object in javascript? 什么是javascript中类似集合的类或对象? As far as I know, about javascript every object satisfies being 'collection-like'.
据我所知,关于javascript,每个对象都满足“类似集合”的要求。
What am I missing here? 我在这里想念什么?
goog.structs
is a namespace containing a wide variety of specific classes for specific things, like CircularBuffer
, Trie
, Queue
, Set
, and so on. goog.structs
是一个名称空间,其中包含用于特定事物的各种特定类,例如CircularBuffer
, Trie
, Queue
, Set
等等。 goog.object
is a fairly basic container. goog.object
是一个相当基本的容器。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.