我有一个绑定,可以用聚合物绑定来更改div的颜色。它在IE.中除外
<div horizontal layout class="navigation" style="background-color:{{toolbarColor}};">
</div>
<script>
Polymer('mapscontroller-element', {
currentPoint: 0,
toolbarColor: "#0099cc",
...
currentPointChanged: function() {
this.toolbarColor = this.toolbarColorArray[this.currentPoint];
}
});
那么问题是什么呢?我花了5秒钟的时间在谷歌上搜索,找到了聚合物文档,解释了为什么存在兼容性问题以及该问题的潜在解决方案不要懒惰