2 个解决方案
#1
试一下下面的代码:
text1.focus();
var oRange=document.selection.createRange();
oRange.move("character",3);
oRange.select();
大爷,行行好,给点分吧
text1.focus();
var oRange=document.selection.createRange();
oRange.move("character",3);
oRange.select();
大爷,行行好,给点分吧
#2
HAHA
#1
试一下下面的代码:
text1.focus();
var oRange=document.selection.createRange();
oRange.move("character",3);
oRange.select();
大爷,行行好,给点分吧
text1.focus();
var oRange=document.selection.createRange();
oRange.move("character",3);
oRange.select();
大爷,行行好,给点分吧
#2
HAHA