浏览器默认行为在页面的第一个type="text" 和 第一个 type="password" 的input框默认填充内容 解决办法 在页面添加两个input opcity设置为0 (不可以设置display:none)