一、input
實現代碼:
<input onfocus="this.select()">
二、textarea
實現代碼:
<textarea onfocus="this.select()">
實現代碼:
<input onfocus="this.select()">
實現代碼:
<textarea onfocus="this.select()">
cp /etc/hosts /etc/hosts_bak hostname |xargs echo 127.0.0.1 >> /etc/hosts
腳本如下: 1 # coding: utf-8 2 3 """ 4 該腳本主要做把源目錄下所有文件,照搬原路徑基礎上覆制文件 5 """ 6 7 import os 8 # import shutil