What is the difference between putting a function in addEventListener vs using function(){ function();} as the second parameter in javascript?

后端 未结 0 792
我在风中等你
我在风中等你 2020-12-15 02:23

Code #1

What is the practical difference between

document.getElementById("clearbutton").addEventListener("click", storage.clearStor         


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