html嵌入script
参考:https://www.runoob.com/html/html-scripts.html
go.html
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="charset=utf-8; text/html" />
<title>调用JS</title>
</head>
<body>
<script>
function changeName(){
x = document.getElementById("nName")
x.innerHTML = "新新人类"
x.style.color = "#00ff00"
}
</script>
<p id="nName">老名字</p>
<button type="button" onclick="changeName()">改名</button>
</body>
</html>