在ff下,innerText得不到值,可以使用textContent

 

ie和firefox都可使用的方法

alert(obj.innerText || obj.textContent);

相关文章:

  • 2021-07-10
  • 2022-01-29
  • 2021-08-11
  • 2022-12-23
  • 2022-12-23
  • 2021-12-09
  • 2022-02-17
  • 2021-10-31
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-09-19
  • 2021-06-29
  • 2022-12-23
  • 2022-12-23
  • 2021-10-28
相关资源
相似解决方案