如何出演文本字段的一部分?像1234 **** **** 1234
While the user is entering the credit card number, I want to star a certain part of the text field as above for security. How can I do it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我找到了解决方案,首先,你们中必须添加该textfield的委托
添加Textfield后,您必须添加以下代码,
I found the Solution, first of you have to add Delegate for that TextField,
After Adding TextField you have to add below code,
我认为没有默认的 HTML 关键字,这里我为您做了一个简单的 JS 覆盖输入,看看它是否适合您的需求:
HTML:
JS:
I don't think there's a default HTML keyword for this, here I made a simple JS override input for you, see if it suits your needs:
HTML:
JS: