factory_mp/index.html

37 lines
1.2 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!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>
</body>
<script>
document.addEventListener('plusready', function() {
plus.key.addEventListener('backbutton', function() {
// 如果 H5 内部有历史记录,可以返回
if (window.history.length > 1) {
window.history.back();
}
// else {
// // 没有可返回的页面 -> 退出 App或按需修改
// plus.runtime.quit();
// // 如果你不想立即退出,可改成:
// // plus.webview.currentWebview().close();
// }
}, false);
});
</script>
</html>