<!-- <input type="text" >

function moveEnd(obj) {
    obj.focus();
    var len = obj.value.length;
    if (document.selection) {
        var sel = obj.createTextRange();
        sel.moveStart('character', len);
        sel.collapse();
        sel.select();
    } else if (typeof obj.selectionStart == 'number'&& typeof obj.selectionEnd == 'number') {
        obj.selectionStart = obj.selectionEnd = len;
    }
}
</script>

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-19
  • 2022-12-23
  • 2021-11-13
猜你喜欢
  • 2021-05-30
  • 2021-08-28
  • 2022-12-23
  • 2022-12-23
  • 2022-02-14
  • 2021-11-27
  • 2022-12-23
相关资源
相似解决方案