1、只能输入数字: onkeyup="value = value.replace(/[^\d]/g,'')"
2、只能输入英文:onkeyup="value = value.replace(/[^a-zA-Z]/g,'')"