html, body {
-ms-overflow-style: scrollbar;
-webkit-tap-highlight-color: transparent;
padding: 0;
margin: 0;
width: 100%;
height: 100%;
background-color: green;
overflow-x: hidden;
}
#info {
position: fixed;
z-index: 999999;
top: 100px;
left: 0;
width: 100%;
height: 400px;
font-size: 24px;
color: green;
padding: 10px;
overflow-x: hidden;
overflow-y: scroll;
background-color: #eee;
opacity: 0.7;
}
/**
* these iife is just for the convenience for the showcase of demos.
* you can import a jsbundle by wrapping it in a tag.
* e.g.
*/
; (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 = 'examples/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)
})()
一键复制
编辑
Web IDE
原始数据
按行查看
历史