JS的内部和外部引用(练习)
2018-02-07 本文已影响0人
H_jb23
内部引用:
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript">
document.write("Hello World!");
</script>
</head>
</html>
外部引用:
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="/hello.js">
</script>
</head>
</html>