GetAsDataURL cannot preview local images in Firefox7.0

  • 2020-03-29 23:46:45
  • OfStack

Use uchome ordinary on the example, take the original code: return obj.files. Item (0). GetAsDataURL ();

After upgrading to Firefox7.0, need to change to: return window. The URL. CreateObjectURL (obj) files [0]).

It's actually Firefox7.0 that disables the item property.


Related articles: