外部脚本与内部脚本 内部脚本: <html> <head> <title>test</title> <script>//head中添加script表示在页面dom加载之前加载script中代码,直至script内容全部加载好才会加载页面 function button_click(){ alert