get this result by printing the done callback function:
compare () {
if (!called) {
called = true;
fn.apply(this, arguments);
}
}
this is how the
handleEnter (el,done) {
setTimeout(function () {
el.style.color = "green";
},2000)
done()
},
The api document says:
when only JavaScript transitions are used, done must be used for callbacks in enter and leave. Otherwise, they will be called by Synchronize and the transition will be completed immediately.
I did not find the definition of the done function in the source code of vue, so I would like to ask how this done function works. Thank you