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.
我希望当用户输入文本时,它应该显示 • 而不是简单的星号,有没有办法(在 win-forms 的 TextBox 中有一个属性 PasswordChar,它在 web 中有什么相似之处)????
不,这是特定于浏览器的。也许你可以用 javascript 伪造这个,但我不推荐它。