layer.computedStyle()
Get all the current applied CSS style properties for the layer. Note that this is an expensive operation for the browser. For a full reference on computed style, see this overview.
译:获取所有当前应用层的CSS样式属性。浏览器请注意,这是一个昂贵的操作。为计算风格的完整引用,请参阅本概述。
layerA = new Layer
layerA.backgroundColor = "red"
print layer.computedStyle()["background-color"]
# Output: "red"