可选entries: readonly (readonly [string, string])[] | null可选iterable: Iterable<readonly [string, string], any, any> | nullReturns an iterable of entries in the map.
Removes all elements from the Map.
true if an element in the Map existed and has been removed, or false if the element does not exist.
Returns an iterable of key, value pairs for every entry in the map.
Returns a specified element from the Map object. If the value that is associated to the provided key is an object, then you will get a reference to that object and any change made to that object will effectively modify it inside the Map.
Returns the element associated with the specified key. If no element is associated with the specified key, undefined is returned.
boolean indicating whether an element with the specified key exists or not.
Returns an iterable of keys in the map
Adds a new element with a specified key and value to the Map. If an element with the same key already exists, the element will be updated.
Returns an iterable of values in the map
静态from从普通对象创建新的 CSSBuilder 实例。
遍历传入对象的所有可枚举属性,将属性名与属性值作为 CSS 属性 名与值存入新的构建器。
包含 CSS 属性键值对的对象。
已填充样式的新 CSSBuilder 实例。
静态group
用于链式构建 CSS 样式字符串的构建器。
CSSBuilder继承自Map,以 CSS 属性名为键、属性值为值。 调用方可通过set方法逐步追加样式,最终调用 CSSBuilder.toString 生成property:value;格式的内联样式字符串。添加于
26.4.13
参阅
Utils.Logger
示例