加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
vue.html 1.40 KB
一键复制 编辑 原始数据 按行查看 历史
王贵 提交于 2017-10-09 14:38 . gfg
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Weex Vue Demo</title>
<meta name="viewport" content="width=device-width, initial-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" />
<!-- <script src="./node_modules/vue/dist/vue.runtime.min.js"></script> -->
<script src="./node_modules/vue/dist/vue.runtime.js"></script>
<!-- <script src="./node_modules/weex-vue-render/index.min.js"></script> -->
<script src="./packages/weex-vue-render/index.js"></script>
</head>
<body>
<div id="root"></div>
<script>
(function () {
function getUrlParam (key) {
var reg = new RegExp('[?|&]' + key + '=([^&]+)')
var match = location.search.match(reg)
return match && match[1]
}
var page = getUrlParam('page')
var defaultPage = 'dav/build/vue-web/vue/index.js'
if (!page) {
var url = location.href.replace(/\?|$/, function(f) {
var query = '?page=' + defaultPage
return f ? query + '&' : query
})
return location.href = url
}
var bundle = document.createElement('script')
bundle.src = page
document.body.appendChild(bundle)
})();
</script>
</body>
</html>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化