1
3
确保调用函数的上下文知道test,否则显然无法传递不知道的内容。
您始终可以将参数传递给匿名函数,但调用它们的上下文需要知道这些参数。这也是延迟的工作方式:
关于您的编辑:
然后使用
在匿名函数中。
编辑:我认为在您的情况下,您甚至不需要传递任何参数。你只需要照顾好
|
Newbie_Coder · 如何使用Jquery无画布裁剪框架 1 年前 |
NovoMannen · 导航中的下拉菜单在内容后面重叠 1 年前 |
Community wiki · 无法从jquery文档调用函数 1 年前 |