0
如何访问聚合物元素内部的外部元素。如何访问聚合物元素内部的外部元素
<polymer-element attributes="externalDropZoneContainerId">>
<script>
Polymer('file-upload', {
ready: function(){
//Here I want to access the externalDropZoneContainerId so that I can bind drag and drop functionality to this ID
//$('#' + externalDropZoneContainerId) does not work.
}
})
</script>
<polymer-element>
对不起。我没有测试这个,因为我发现一个工作不是这样的。我会尽快进行测试,并会更新您的答案 – sam113 2015-02-12 14:33:55