<input type="text" id="source_tds" name="source_tds" value="<{$source_tds}>" 
onkeyup
="if(isNaN(value)){execCommand('undo');alert('只能输入数字 !');}"
onafterpaste
="if(isNaN(value))execCommand('undo')"

></input>

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-09-22
  • 2022-12-23
  • 2022-12-23
  • 2021-10-22
相关资源
相似解决方案