input只能输入数字(小数) <input type="text" name="data" id="cardNumber" onkeyup="value=value.replace(/[^d]/g,'')" placeholder="请输入卡号"/>