How can I pass arguments to anonymous functions in JavaScript?

前端 未结 10 1469
别那么骄傲
别那么骄傲 2020-12-08 01:37

I\'m trying to figure out how to pass arguments to an anonymous function in JavaScript.

Check out this sample code and I think you will see what I mean:



        
10条回答
  •  北荒
    北荒 (楼主)
    2020-12-08 02:15

    Example:

    
    
    

提交回复
热议问题