Is it bad practice getting DOM elements multiple times in different functions?

后端 未结 0 783
庸人自扰
庸人自扰 2021-01-22 07:21

I have some javascript code which counts the remaining characters in a textarea as the user types text in it.

window.onload = function () {
    captureTextArea();         


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