search

Home  >  Q&A  >  body text

why even

$("content").slideDown('slow',function(even){

}

Why is there even

P粉176222609P粉1762226091080 days ago1761

reply all(4)I'll reply

  • Pxm

    Pxm2022-02-22 15:50:35

    This even originates from the upper-level function of this anonymous function. An actual parameter (even) is passed when the upper-level function is called, so the row parameters of this anonymous function can be used.

    reply
    0
  • autoload

    autoload2022-02-14 10:14:04

    This is just a formal parameter

    reply
    0
  • P粉176222609

    If not, can it be run?

    P粉176222609 · 2022-02-14 10:14:54
    Pxm

    $a = function() { return 111 }; $a(even) The number of actual parameters can be greater than the formal parameters, so it doesn't matter whether you write it or not.

    Pxm · 2022-02-22 15:58:54
  • Cancelreply