当鼠标点击input框时,想让全选input框的所有内容只需要加“οnfοcus="this.select();”就可以了 转载于:https://www.cnblogs.com/mjbrian/p/7600249.html