How does the location of a script tag in a page affect a JavaScript function that is defined in it?

后端 未结 9 1251
死守一世寂寞
死守一世寂寞 2020-11-29 04:27

I read that you should define your JavaScript functions in the tag, but how does the location of the

9条回答
  •  一整个雨季
    2020-11-29 04:55

    It doesn't. Most programming framework scatter scripts all throughout the page. I've only rarely seen problems because of that (and only from older browsers).

提交回复
热议问题