android: add web shell

This commit is contained in:
pengfei.zhou
2021-11-08 13:53:46 +08:00
committed by osborn
parent 86b6c63588
commit b7935e48c7
9 changed files with 318 additions and 7 deletions

View File

@@ -0,0 +1,23 @@
<!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>