js3
js的按钮点击方式和弹窗
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
<!--外部-->
<script src="demo01.js" type="text/javascript"></script>
<!--内嵌-->
<script type="text/javascript">alert("内嵌引入");
alert("第二局");
</script>
</head>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
<!--外部-->
<script src="demo01.js" type="text/javascript"></script>
<!--内嵌-->
<script type="text/javascript">alert("内嵌引入");
alert("第二局");
</script>
</head>
<body>
<!--内联-->
<a href="javascript:alert('123')">点击我</a>
<!--内联-->
<a href="javascript:alert('123')">点击我</a>
</body>
</html>
</html>
// JavaScript Document
alert("这是外部");
alert("这是外部");