1,
<input type="text" placeholder="输入2-11位靓号" maxlength="11" oninput="value=value.replace(/[^\d]/g,'')">