1

如何将图像从本地存储到 vaadin-upload?我找不到来自 vaadin-upload 的输入。希望你能帮助我,谢谢!

Vaadin-upload 正在与 Polymer 3.0 一起工作。

<vaadin-upload id="upload" no-auto></vaadin-upload>

--------
ready(){
   super.ready();

   var upload = this.$.upload;
   var files = upload.files;

   var newImage = JSON.parse(localStorage.newAttachment);
   var maxImage = newImage.length;
   for(var i = 0; i < maxImage; i++) {
      files.indexOf(localStorage.getItem(newImage[i].data));
   }
}

它显示无。

4

0 回答 0