# ``<input>`` 在 Safari 上觸發「自動建議密碼」時的眉角 1. 只要 `type=password` 就會自動建議密碼 2. 可以使用 `maxLength=<數字>` 來限制自動建議密碼的長度 1. 當 `maxLength` 沒有被設置,或是 `maxLength ≥ 20`,或是 `maxLength ≤ 0` 的時候,會自動建議一組 20 個字的密碼,格式是 `xxxxxx-xxxxxx-xxxxxx` 2. 當 `15 ≤ maxLength < 20` 的時候,會自動建議一組 15 個字的密碼,格式是 `xxx-xxx-xxx-xxx` 3. 當 `0 < maxLength < 15` 的時候,會自動建議一組長度為 maxLength 的密碼,格式是單純的大小寫+數字組合,不會有 `-` 3. `pattern` 跟 `minLength` 對自動建議密碼無效,也就是說就算把 `minLength` 設定為 `30`,也不會因此建議一組 30 個字的密碼
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up