<input type="password" />如何只能输入数字呢? 答案: <input type="password" onkeyup="value=value.replace(/[^\d]/g,'')" /> THE END