网友收藏设置input光标的位置_改变input赋值时输入框的光标位置-CSDN博客文章浏览阅读1.8w次。function set_text_value_position(obj, spos){ var tobj = document.getElementById(obj); if(spos<0) spos = tobj.value.length; if(tobj.setSelectionRange){ //兼容火狐,谷歌 setT_改变input赋值时输入框的光标位置... 2024-01-24 14:07 评论 0 阅读 阅读全文