<input type="text"     oninput='fromChange()'>

1、注册监听

$(document).on('input', '#test', function () {console.log($("#test").val() );  });

 

2、事件监听

function fromChange() {

console.log($("#test").val() ); 

}

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-10-25
  • 2022-12-23
  • 2022-12-23
  • 2021-09-29
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-02
  • 2022-12-23
  • 2022-01-28
相关资源
相似解决方案