console.log(window.l);  //undefined
console.log(l);       //Uncaught ReferenceError: l is not defined

js对于未找到的元素返回的结果不一样。

相关文章:

  • 2022-01-02
  • 2022-12-23
  • 2022-12-23
  • 2021-10-13
  • 2022-12-23
  • 2021-12-09
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-09-12
  • 2021-07-05
  • 2022-01-10
  • 2022-12-23
  • 2022-02-12
相关资源
相似解决方案