我知道可以使用type="number"显示数字键盘,但问题是我想根据输入的数字重新格式化输入为字符串。
因此,我想要一个文本字段,但它应该在点击时显示数字键盘。这可能吗?
onFocus = "this.type = 'number'"; onBlur = "this.type = 'text'";