第一种方法:(html)html
在表单里的上方加入一样name的隐藏域web
<input type="hidden" name="Name" />chrome
<input type="hidden" name="Password" />浏览器
第二种方法:(单独区分360浏览器 js)ide
if( window.chrome && window.chrome.webstore && Object.keys(window.chrome.webstore).length < 3 ){ //判断是否360浏览器this
$(':text', ':password').each(function(){ //遍历不须要自动填充的元素htm
//复制该元素(this.outerHTML)并添加到后面,而后隐藏该元素并置name属性为空rem
//只能隐藏而不能使用remove方法去除该元素,不然失效input
$(this).after(this.outerHTML).attr('name', '').hide(); io
})
}