禁止input textarea 输入时浏览器自动提示历史填写记录

akiooo 2023-10-09 PM 1937℃ 2条

添加autocomplete属性,值为off;

<input type="text" autocomplete='off'>
<textarea autocomplete='off'>

非特殊说明,本博所有文章均为博主原创,

部分转载有可能忘记标注,如侵犯了您的权益,您可以留言我增加原文出处或删除文档。

评论啦~



已有 2 条评论


  1. 1
    1

    1

    回复 2025-07-07 13:10
  2. 1
    1

    1

    回复 2025-07-07 13:12