Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在我的应用程序中使用 Jasny Bootstrap 进行输入屏蔽时卡住了。
我有一个文本框,我想在其中应用屏蔽(仅输入不小于 1 且不大于 1111 的数字),但在我的情况下,如果我可以输入少于 4 位的数字,则不接受。有什么帮助吗?
<input class="form-control" id="txtEIN" type="text" data-mask="9999" />
“?”之后的任何字符 是可选的
<input class="form-control" id="txtEIN" type="text" data-mask="9?999" />