慕容1519046
2017-02-25 21:46
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb18030">
<title>插入js代码</title>
<script>
<script type="text/javascript">
document.write("开启JS之旅!");
</script>
</head>
<body>
</body>
</html>
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb18030">
<title>插入js代码</title>
<script type="text/javascript">
document.write("开启JS之旅!");
</script>
</head>
<body>
</body>
</html>
<script></script>是成对出现,格式;<script type="text/javascript"> ....</script>
亲,正确的格式是:<script type="text/javascript">...<script>
<script></script> 是成对出现的
<script>需要</script>闭合,你的代码缺少一个</script>
JavaScript入门篇
739818 学习 · 9566 问题
相似问题