Jquery - fancybox and callback

前端 未结 7 1610
借酒劲吻你
借酒劲吻你 2020-12-31 17:36

I have problem with fancybox.
I want to write a function that will run when the fancybox opened. How and when to call the function?

Example:

func         


        
相关标签:
7条回答
  • 2020-12-31 18:05
    'callbackOnShow': myFunc
    

    lower case b as the options are case sensitive, and no brackets on myFunc, as you want to pass the function as an option, not call it.

    0 讨论(0)
提交回复
热议问题