自动全选
<input type="text" maxlength="20" v-model.trim="title" onfocus="this.select()" onmouseover="this.focus()" />
按一下全选
<input type="text" style="border:none;height:80% " maxlength="20" v-model.trim="title" onfocus="this.select()" />
自动全选
<input type="text" maxlength="20" v-model.trim="title" onfocus="this.select()" onmouseover="this.focus()" />
按一下全选
<input type="text" style="border:none;height:80% " maxlength="20" v-model.trim="title" onfocus="this.select()" />
本文标题:input text 得到焦点后自动全选
本文链接:https://www.haomeiwen.com/subject/tfqzmqtx.html
网友评论