<input id="focus" type="text" value="" placeholder="手机号" readonly="readonly" οnkeyup="this.value = this.value.replace(/\D/,'')"/>
只需加上readonly="readonly"即可!
<input id="focus" type="text" value="" placeholder="手机号" readonly="readonly" οnkeyup="this.value = this.value.replace(/\D/,'')"/>
只需加上readonly="readonly"即可!