文本域获得焦点置到内容的最后
//x为文本域对象function f_setCursorPos(x){var txtRange = x.createTextRange();txtRange.moveStart("character",x.value.length);txtRange.moveEnd("character",0);txtRange.select();}
·
//x为文本域对象
function f_setCursorPos(x){
var txtRange = x.createTextRange();
txtRange.moveStart("character",x.value.length);
txtRange.moveEnd("character",0);
txtRange.select();
}
更多推荐



所有评论(0)