< input type =“number”是什么事件? />当它的价值发生变化时发生火灾? [英] What events does an <input type="number" /> fire when it's value is changed?
本文介绍了< input type =“number”是什么事件? />当它的价值发生变化时发生火灾?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
只是想知道是否有人知道HTML5 < input type =number/>
元素在点击其向上/向下箭头时会触发哪些事件:
当焦点离开输入字段时,我已经在使用 onblur
。
解决方案
change
应该是字段值更改时触发的事件。
我认为HTML5事件 input
也会触发。
Just wondering whether anyone knows what events an HTML5 <input type="number" />
element fires when its up / down arrows are clicked:
I'm already using an onblur
for when the focus leaves the input field.
解决方案
change
would be the event that is fired when the field's value changes.
I think the HTML5 event input
would also fire.
这篇关于< input type =“number”是什么事件? />当它的价值发生变化时发生火灾?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文