GithubHelp home page GithubHelp logo

Comments (15)

passioncsu avatar passioncsu commented on May 7, 2024 4

终于解决了 还得是这个方法....

加两个属性

type="text"
style="-webkit-text-security:disc;"

from the-front-end-knowledge-you-may-not-know.

Lyd9607 avatar Lyd9607 commented on May 7, 2024 3

dispaly:none;在新的版本无效,最好的方法是在第一个有效的密码框前面加上一个假的密码框,并设置宽高为0,border为none

from the-front-end-knowledge-you-may-not-know.

justjavac avatar justjavac commented on May 7, 2024 1

<input autocomplete=off> 确实不管用。

只能使用奇技淫巧了:在表单最上面新建两个用户名和密码的隐藏的 input

from the-front-end-knowledge-you-may-not-know.

wuxianqiang avatar wuxianqiang commented on May 7, 2024 1

感谢大家热情的为我提供帮助,最后通过参考这篇文章解决了我的问题:文章链接

我的代码如下:

  <form action="?" method="post">
      <input type="text" style="display: none;">
      <input type="password" class="form-control"  placeholder=""  autocomplete="new-password">
      <input type="submit" value="提交">
  </form>

from the-front-end-knowledge-you-may-not-know.

xmcp avatar xmcp commented on May 7, 2024

<input autocomplete=off>

from the-front-end-knowledge-you-may-not-know.

wuxianqiang avatar wuxianqiang commented on May 7, 2024

我已经尝试了这样的写法,但是没有任何效果。

from the-front-end-knowledge-you-may-not-know.

al002 avatar al002 commented on May 7, 2024

<input autocomplete="new-password"> 应该不会提示保存的密码了

from the-front-end-knowledge-you-may-not-know.

justjavac avatar justjavac commented on May 7, 2024

https://developer.mozilla.org/zh-CN/docs/Web/Security/Securing_your_site/Turning_off_form_autocompletion

from the-front-end-knowledge-you-may-not-know.

wuxianqiang avatar wuxianqiang commented on May 7, 2024

我尝试了你们推荐的方法,但是还是不行。我的谷歌版本是:版本 67.0.3396.79(正式版本)
image
谷歌浏览器的保存密码只要点了保存之后就会有这个提示。

from the-front-end-knowledge-you-may-not-know.

eward957 avatar eward957 commented on May 7, 2024

使用autocomplete = 'new-password'

from the-front-end-knowledge-you-may-not-know.

justjavac avatar justjavac commented on May 7, 2024

@wuxianqiang

你没认真看我的回复吧

from the-front-end-knowledge-you-may-not-know.

wuxianqiang avatar wuxianqiang commented on May 7, 2024

@justjavac
看了你的回复,但是隐藏表单必须是text类型,而且还有加autocomplete = new-password

from the-front-end-knowledge-you-may-not-know.

luohong123 avatar luohong123 commented on May 7, 2024
  <input type="password" [(ngModel)]="password" name="password" style="display:none">
  <input nz-input type="password" autocomplete="new-password" [(ngModel)]="password" name="password" placeholder="请输入密码" id="password">

我是这样实现的

from the-front-end-knowledge-you-may-not-know.

lanxisama avatar lanxisama commented on May 7, 2024

我知道的方法是 再你实际的表单上面加俩input 然后隐藏掉

from the-front-end-knowledge-you-may-not-know.

passioncsu avatar passioncsu commented on May 7, 2024

2023年了 还有什么新办法吗

from the-front-end-knowledge-you-may-not-know.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.