input聚焦后光标移动至末尾

var valSrc=obj.val();
obj.val(“”).focus().val(valSrc);

原文地址:https://www.cnblogs.com/justSmile2/p/9562008.html