在html文件裡使用 <script> ,如: ... innerHTML = “My First JavaScript”; ... <body>; 外部.js檔,並在 <head> 裡用 <script src=".js檔案路徑"></script> 引入。
確定! 回上一頁