why even
P粉176222609
P粉176222609 2022-02-14 09:28:58
0
4
1701

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

}

Why is there even

P粉176222609
P粉176222609

reply all(2)
Pxm

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.

逆旅行人a

This is just a formal parameter

  • reply If not, can it be run?
    P粉176222609 author 2022-02-14 10:14:54
  • reply $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 author 2022-02-22 15:58:54
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template