async mounted(){
let inputList = document.querySelectorAll('input');
for (let index = 0; index < inputList.length; index++) {
inputList[index].onfocus = this.selectValue;//input放入焦点,全选文本
}
}
//全选文本
selectValue(e) {
e.currentTarget.select();
}
标签:index,let,inputList,选中,input,文本,放入
From: https://www.cnblogs.com/anjun-xy/p/16784628.html