JS addEventListener not all events are captured

前端 未结 0 925
野的像风
野的像风 2021-01-27 16:58
    var fired = false;

window.addEventListener(\'scroll\', () => {
    if (fired === false) {
        fired = true;

        setTimeout(() => {
          let cart         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题