JavaScript focus() throws "Permission denied to get property XULElement.selectedIndex" 这个Bug通常在focus()方法被调用时发生,避免这个bug的发生,可把input控件的autocomplete属性设为false。

Javascript代码:

); 

C#代码:

);

 

 PS:若禁用autocomplete属性后,input文本框还有智能提示,请Ctrl + Shift + Delete,清除FF中的Private Data。

相关文章:

  • 2021-10-18
  • 2021-07-11
  • 2021-05-25
  • 2021-07-18
  • 2021-10-10
  • 2021-10-31
  • 2022-12-23
猜你喜欢
  • 2021-10-03
  • 2021-11-28
  • 2021-09-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案