window.URL.revokeObjectURL() doesn't release memory immediately (or not at all)?

前端 未结 2 1518
误落风尘
误落风尘 2021-02-02 16:28

I\'m making an html interface to upload images on a server with Drag & Drop and multiple selection files. I want to display the pictures before sending them to the server. S

2条回答
  •  闹比i
    闹比i (楼主)
    2021-02-02 16:40

    With window.URL.revokeObjectURL() you can only get [Blob] or [File] object. You can not force remove from memory.

    Note. Browsers are not finalized and they can leak from these facilities. If you implement the animation, you have to understand that at your own risk.

提交回复
热议问题