0
的getComputedStyle在
我們polymer1.0組成部分,我們有這樣的:聚合物2.0異步和
attached: function()
{
var something=this.getComputedStyleValue("--flxs-" + prop)
this.async(function()
{
// do some work here.
});
}
在2.0中,既沒有定義this.getComputedStyleValue this.async。
任何想法有什麼選擇?
單獨一個'Polymer.Async'不起作用。需要添加更多名稱空間。 [API參考](https://www.polymer-project.org/2.0/docs/api/namespaces/Polymer.Async) –