forked from walid1992/weex-frame
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathweex.html
executable file
·35 lines (34 loc) · 1.07 KB
/
weex.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>WeexFrame</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-touch-fullscreen" content="yes">
<meta name="format-detection" content="telephone=no, email=no">
<style>body > div {
height: 100%;
}</style>
<script src="./node_modules/vue/dist/vue.js"></script>
<script src="./node_modules/weex-vue-render/index.js"></script>
</head>
<body>
<div id="root"></div>
<!--<script src="./dist/web/App.js"></script>-->
<script>
(function () {
function getUrlParam (key) {
let reg = new RegExp('[?|&]' + key + '=([^&]+)')
let match = location.search.match(reg)
return match && match[1]
}
let page = getUrlParam('page') || './dist/web/App.js'
let bundle = document.createElement('script')
bundle.src = page
document.body.appendChild(bundle)
})();
</script>
</body>
</html>