【发布时间】:2015-03-27 17:16:24
【问题描述】:
我可以在 android webview 中使用 html5 输入超过指定最大长度的输入标签,type=text。当失去焦点/模糊时,值将被修剪为最大长度。
例如
<input type="text" maxlength="5" id="hahaha">
value entered = abcdefghij
on blur/lostfocus value displayed = abcde.
无论如何限制用户输入比maxlength更多的字符,而不是在用户输入内容后修剪内容。在IOS中它工作正常。
【问题讨论】:
-
@Blauharley 类型是文本而不是数字
标签: javascript jquery html webview