表单oninput和onchange事件区别

oninput事件是元素value发生变化是立刻触发,而onchange是元素发生变化并且失去焦点时才会触发。

posted @ 2018-08-31 14:23  lyk_109  阅读(361)  评论(0)    收藏  举报