当前位置:网站首页>Input type= "password" how to solve the problem of password automatically brought in
Input type= "password" how to solve the problem of password automatically brought in
2022-07-07 11:09:00 【Have a good time I】
use input type="password" Password box , The browser will automatically bring in the password , You can add autocomplete=“new-password”
such as
<a-input-password v-model="password" style="width:370px;margin-left:10px;" placeholder="8-15 Characters , You have to include numbers at the same time 、 english 、 Special symbols " autocomplete="new-password" @blur="handlePassword" @change="handlePasswordChange" />
Although not prompted , But click on the input box , There will still be a saved password prompt below .
By adding onblur="this.readOnly = 'readonly'"
It can solve the problem that the second click will prompt the password
perhaps
By adding readonly&onfocus =“this.removeAttribute('readonly')
; That solved the problem .
<input type="password" name="Password" autocomplete="off" readonly onfocus="this.removeAttribute('readonly');" >
This problem will still occur above , Although the password is not brought in , But the browser still brings this kind of pop-up box when clicking , It is trouble , How to get rid of . Do not use <a-input-password >
This component
<a-input type="text" class="pw" @blur="handleAgainPassword" />
<style> .pw {
-webkit-text-security: disc; } </style>
Smooth solution :
There are many ways on the Internet , But this method is currently the most effective .
边栏推荐
- ADB utility commands (network package, log, tuning related)
- Those confusing concepts (3): function and class
- 请问申购新股哪个证券公司开户是最好最安全的
- Arduino receives and sends strings
- SQL Server knowledge gathering 9: modifying data
- Monai version has been updated to 0.9. See what new functions it has
- 2021-05-21
- 2022.7.6DAY598
- Deep understanding of Apache Hudi asynchronous indexing mechanism
- 2021-04-08
猜你喜欢
Transaction rolled back because it has been marked as rollback-only解决
從色情直播到直播電商
“梦想杯”2017 年江苏省信息与未来小学生夏令营 IT 小能手 PK 之程序设计试题
单调性约束与反单调性约束的区别 monotonicity and anti-monotonicity constraint
China Southern Airlines pa3.1
seata 1.3.0 四種模式解决分布式事務(AT、TCC、SAGA、XA)
[STM32] actual combat 3.1 - drive 42 stepper motors with STM32 and tb6600 drivers (I)
2021 summary and 2022 outlook
The concept, implementation and analysis of binary search tree (BST)
2022年7月10日“五心公益”活动通知+报名入口(二维码)
随机推荐
The eighth training assignment
A simple example of delegate usage
[pyqt] the cellwidget in tablewidget uses signal and slot mechanism
單調性約束與反單調性約束的區別 monotonicity and anti-monotonicity constraint
[STM32] actual combat 3.1 - drive 42 stepper motors with STM32 and tb6600 drivers (I)
Unity determines whether the mouse clicks on the UI
Arduino board description
Kitex retry mechanism
2021-05-21
Bookmarking - common website navigation for programmers
【STM32】实战3.1—用STM32与TB6600驱动器驱动42步进电机(一)
uniCloud
[untitled]
shardingsphere分库分表示例(逻辑表,真实表,绑定表,广播表,单表)
Idea shortcut keys
[untitled]
[pytorch 07] hands on deep learning chapter_ Preliminaries/ndarray exercises hands-on version
Unity downloads files through the server address
"Dream Cup" 2017 Jiangsu information and future primary school summer camp it expert PK program design questions
從色情直播到直播電商