self_example/java_web/JavaScript/html/02-引入方式.html

26 lines
477 B
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>02-引入方式</title>
</head>
<body>
<!--内部方式,写对应的JS的代码-->
<!--弹出一个对应的对话框-->
<!-- 尽量放在boby的后面因为js代码加载还需要一定的时间-->
<!--<script>-->
<!-- alert("hello js");-->
<!--</script>-->
<!--外部方式,引入一个js文件-->
<!--标签不能自闭和-->
<script src="../js/demo.js"></script>
</body>
</html>