You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
1.1 KiB
31 lines
1.1 KiB
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<script>
|
|
var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') ||
|
|
CSS.supports('top: constant(a)'))
|
|
document.write(
|
|
'<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' +
|
|
(coverSupport ? ', viewport-fit=cover' : '') + '" />')
|
|
</script>
|
|
<title></title>
|
|
<!--preload-links-->
|
|
<!--app-context-->
|
|
</head>
|
|
<body>
|
|
<div id="app"><!--app-html--></div>
|
|
<script type="module" src="/main.js"></script>
|
|
<!-- <script type="text/javascript" src="./uniWebview.js"></script> -->
|
|
<!-- <script type="text/javascript" src="https://gitcode.net/dcloud/uni-app/-/raw/dev/dist/uni.webview.1.5.6.js"></script> -->
|
|
<script>
|
|
document.addEventListener('UniAppJSBridgeReady', function() {
|
|
uni.webView.getEnv(function(res) {
|
|
console.log('当前环境:' + JSON.stringify(res));
|
|
});
|
|
// uni.webView.navigateTo(...)
|
|
});
|
|
</script>
|
|
|
|
</body>
|
|
</html>
|