Let"s take a photo of the previous project first:
photoClip.js
html:
html:
JS
:
:logo-->-->,
:1-->-->...wtf:
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