标签:png create else track baidu hid 文本 doc data
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;
}
}
标签:png create else track baidu hid 文本 doc data
原文地址:http://www.cnblogs.com/lytwajue/p/7073871.html