android: webview shell mode
This commit is contained in:
@@ -2,9 +2,25 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>这是一个HTML5的网页</title>
|
||||
<title>Web shell for doric</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);
|
||||
}
|
||||
|
||||
NativeClient.ready();
|
||||
</script>
|
||||
</html>
|
||||
|
Reference in New Issue
Block a user