JavaScript(1) 1.JavaScript可以直接写入HTML输出流中 document.write() 2.JavaScript对时间做出反应 <button type="button" onclick="alert('Welcome!')">点击这里</button> onclick alert