如何使用javascript / jquery写onshow事件? [英] How to write onshow event using javascript/jquery?
本文介绍了如何使用javascript / jquery写onshow事件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我如何写这个事件?每当这个元素的显示改变时,都可以捕获?
解决方案
你不能直接在JavaScript中获得onshow事件。请记住,以下方法是 非标准 。
在IE中,您可以使用
元素
的属性更改后触发
和Mozilla
您可以使用
手表要分配一个属性
a值,并在
发生时运行一个函数。
I have an anchor tag on my page, i want an event attached to it, which will fire when the display of this element change.
How can i write this event? and catch whenever the display of this element change?
解决方案
You can't get an onshow event directly in JavaScript. Do remember that the following methods are non-standard.
IN IE you can use
Fires after the property of an element changes
and for Mozilla
you can use
Watches for a property to be assigned a value and runs a function when that occurs.
这篇关于如何使用javascript / jquery写onshow事件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文