Polymer 2.0异步和getComputedStyle
在我们的polymer1.0组件中,我们有:Polymer 2.0异步和getComputedStyle,polymer,polymer-2.x,Polymer,Polymer 2.x,在我们的polymer1.0组件中,我们有: attached: function () { var something=this.getComputedStyleValue("--flxs-" + prop) this.async(function() { // do some work here. }); } 在2.0中,未定义this.getComputedStyleValue和this.async 知道替代方案是什么吗?似乎是这个.as
attached: function ()
{
var something=this.getComputedStyleValue("--flxs-" + prop)
this.async(function()
{
// do some work here.
});
}
在2.0中,未定义this.getComputedStyleValue和this.async
知道替代方案是什么吗?似乎是这个.async的替代方案
对于getComputedStyleValue,您可以尝试,但我怀疑它是否有效
否则,将包含所有旧方法。单独使用。异步不起作用。需要添加更多的名称空间。