There is a way of getting an object's or element's property with brackets: object["property"]
works the same as object.property
. In the string, there is allowed to have a dash at the start.
To set a '-webkit' style property, just use element.style["-webkit..."] = "a value"
.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…