force Javascript to not execute till display =“inline”

后端 未结 1 1155
自闭症患者
自闭症患者 2021-01-24 06:06

I\'ve got a program which contains 2 div\'s. Depending on the user at any given time 1 of the div\'s is visible. Is it possible to stop my entire

相关标签:
1条回答
  • 2021-01-24 06:53

    Not directly no. But with jQuery, you could override the hide/show functions so that they fire custom events "onshow" and "onhide", then you could bind event handlers to these events to run various code when those events fire.

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