编辑下面的代码:【加编码】
<html> <body> <script src="/demo/demo_defer.js" defer></script> <p>The script above requests information from the paragraph below. Normally, this is not possible, because the script is executed before the paragraph exists.</p> <p id="p1">Hello World!</p> <p>However, the defer attribute specifies that the script should be executed later. This way the script can request information from the paragraph.</p> </body> </html>
结果: 【此窗口】 帮助?
Try it Yourself - © 自强学堂