原生事件

input 中如何监听值的变化?

可以监听的事件有以下几种

  • keypress 按下
  • keydown 按下
  • keyup 抬起
  • input 输入

但唯独没有 change