How to execute code before window.load and after DOM has been loaded?

前端 未结 4 1860
鱼传尺愫
鱼传尺愫 2020-12-09 08:36

Here is the circumstance: I have 2 pages:

  • 1 x html page
  • 1 x external Javascript

Now in the html page, there will be internal Ja

4条回答
  •  甜味超标
    2020-12-09 09:42

    javascript runs from top to bottom. this means.. if you include your external javascript before your internal javascript it would simply run before the internal javascript runs.

提交回复
热议问题