input text 得到焦点后自动全选
2019-03-20 本文已影响0人
良品山核桃
自动全选
<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()" />