1 Star 0 Fork 14

美丽的小仙女/vue-h5-template

forked from Lael/vue-h5-template 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
index.html 1.18 KB
一键复制 编辑 原始数据 按行查看 历史
Evan Fong 提交于 2023-01-04 16:40 . feat: 修改兼容配置
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.ico" />
<meta
name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover"
/>
<meta name="format-detection" content="telephone=no, email=no, date=no, address=no" />
<title>Vite App</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
<script>
window.onload = function () {
document.addEventListener('touchstart', function (event) {
if (event.touches.length > 1) {
event.preventDefault();
}
});
var lastTouchEnd = 0;
document.addEventListener(
'touchend',
function (event) {
var now = new Date().getTime();
if (now - lastTouchEnd <= 300) {
event.preventDefault();
}
lastTouchEnd = now;
},
false,
);
document.addEventListener('gesturestart', function (event) {
event.preventDefault();
});
};
</script>
</body>
</html>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/beautiful_fairy/vue-h5-template.git
git@gitee.com:beautiful_fairy/vue-h5-template.git
beautiful_fairy
vue-h5-template
vue-h5-template
vue-h5-template

搜索帮助