第一种方法:(html)

在表单里的上方加入同样name的隐藏域

 

<input type="hidden" name="Name" />

<input type="hidden" name="Password" />

 

第二种方法:(单独区分360浏览器 js)

if( window.chrome && window.chrome.webstore && Object.keys(window.chrome.webstore).length < 3 ){  //判断是否360浏览器

  $(':text', ':password').each(function(){  //遍历不需要自动填充的元素

    //复制该元素(this.outerHTML)并添加到后面,然后隐藏该元素并置name属性为空

    //只能隐藏而不能使用remove方法去除该元素,否则失效

       $(this).after(this.outerHTML).attr('name', '').hide();        

     })

}

 

相关文章:

  • 2022-12-23
  • 2021-06-30
  • 2022-02-08
  • 2022-12-23
  • 2021-12-19
  • 2021-12-19
猜你喜欢
  • 2021-12-19
  • 2022-12-23
  • 2021-12-19
  • 2022-03-15
  • 2021-12-11
  • 2021-12-19
相关资源
相似解决方案