使用<script></script>成功弹出alert对话框 html 代码 js代码 运行结果 使用<script/>没有弹出alert对话框 html html代码 javascript代码 运行结果 总结 script标签必须成对出现,否则不会被读取。