html:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<!--**内嵌式**-->
<script type="text/javascript">
window.alert("JS真的好简单")
</script>
<!-- **链接式**-->
<script type="text/javascript" src="js/mysj.js"></script>
</head>
<body>
</body>
</html>
js:
alert("MY JS")