![](/img/trans.png)
[英]Polymer 2.0 dynamically assigned id to a <ul> in dom-repeat template returns null in observe method on a array using this.shadowRoot.querySelector()
我正在嘗試在Polymer2.0應用程序中實現Sortablejs,在其中我將ID動態分配給dom重復模板中的ul元素。 我的問題是我無法在待辦事項列表數據列表的觀察者方法中訪問帶有ID的ul。 我嘗試了document.getElementId,this。$。querySelect ...