This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
Doric/doric-js/bundle/doric-web.html
2021-11-09 17:01:45 +08:00

24 lines
656 B
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>这是一个HTML5的网页</title>
</head>
<body>
<p>Hello HTML5</p>
</body>
<script type="text/javascript">
function addScriptElement(scriptId, source) {
const scriptElement = document.createElement("script");
scriptElement.type = "text/javascript";
scriptElement.id = scriptId;
scriptElement.src = source;
document.body.appendChild(scriptElement);
}
function removeScriptElement(scriptId) {
const scriptElement = document.getElementById(scriptId);
document.body.removeChild(scriptElement);
}
</script>
</html>