1. 只要把input元素的id传进来即可 
  2. function moveCursor(id)  {  
    var id = document.getElementById(id);  
     id.focus();  
    var r=id.createTextRange();  
       r.collapse(

false); 

    r.select(); 
     } 

相关文章:

  • 2021-08-01
  • 2022-12-23
  • 2022-12-23
  • 2021-07-13
  • 2022-03-07
  • 2022-01-17
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案