如圖:
對於前端體驗來說,這個彈框並不友好
原因:對於 type=password,瀏覽器會尋找與它臨近的input type=text,將用戶名填上
緩兵之計是:在<input type="password" 這個標簽之前加:<input type="text" style="display:none;" /> 用於混淆瀏覽器
以下為前輩總結的參考地址是:
http://www.qdfuns.com/notes/16116/8741cbfbd6bc8bc75c1401326922e29f.html