运行 ❯
获取您
自己
的网站
×
更改方向
保存代码
更改主题,深色/浅色
前往 Spaces
<!DOCTYPE html> <html> <body> <h2>External JavaScript</h2> <p id="demo">A Paragraph.</p> <button type="button" onclick="myFunction()">Try it</button> <p>This example uses a file path to link to "myScript.js".</p> <p>(myFunction is stored in "myScript.js")</p> <script src="/js/myScript.js"></script> </body> </html>