SOURCE
Result
JavaScript
HTML
console 命令行工具
X
clear
>
console
function mymessage() { alert("该消息被 onload 事件触发") }
<body onload="mymessage()"> </body>