Questions about the Mechanism of js object Recycling

Let"s take a photo of the previous project first:

clipboard.png
photoClip.js
html:

clipboard.png
html:


JS


:
:logo-->-->,

clipboard.png

:1-->-->...wtf:

clipboard.png
according to the breakpoint, after the first upload, loadComplete entered, and then output "photo read complete" once (normal), the second upload, loadComplete entered twice, and then output "photo read complete" twice, that is, the clipArea object was actually created a total of 3 times, there are a total of three clipArea objects in the stack. I can"t help emptying the clipArea object manually in the clipFinish callback, but it still doesn"t work.
is there a big god to help me to see what"s going on? How to solve this pit

Apr.22,2021

not too close you should lack a form.reset () to find the plug-in document keyword reset


literally has nothing to do with garbage collection.
is that your component is bound to "- sharpckimg" , and multiple times. Logically, you click on the third picture and print it three times.

Menu