script03.js
来自「图灵程序设计丛书 JavaScript基础教程源代码」· JavaScript 代码 · 共 14 行
JS
14 行
/* This is an example of a long JavaScript comment. Note the characters at the beginning and ending of the comment. This script adds the words "Hello, world!" into the body area of the HTML page.*/window.onload = writeMessage; // Do this when page finishes loadingfunction writeMessage() { // Here's where the actual work gets done document.getElementById("helloMessage").innerHTML = "Hello, world!";}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?