Home > front end >  The small white to solve
The small white to solve

Time:09-21

Out. The onclick=foo;
Out. The onclick=foo ();


The function foo () {
The console. The log (" out ");
}

First call I can understand what I clicked on the out of the tag to invoke foo (), but the second I didn't click this TAB background is the direct output of the out, a little do not understand, isn't assigned to out of the triggering event object?

CodePudding user response:

Not oh

You output function is actually know the

Out. The onclick=foo; This sentence is gave out foo function assignment. The onclick

Out. The onclick=foo (); It is the result of the function foo execution after assignment gave out the onclick



  • Related