JavaScript事件 常用事件有 @:onclick @:onmouseover @:onmouseout @:onkeydown @:onload 例: <button onclick="displayDate()">现在的时间是?</button> //运行结果