vue-cli中用iscroll
npm 用 iscroll
npm i iscroll
import IScroll from 'iscroll'
谷歌浏览器中,不能滚动的问题
1、全局设置
chrome://flags/#enable-pointer-events
2、添加代码局部设置
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title>thild-chat</title>
<script>window.PointerEvent = void 0</script> //添加的代码
<script src="./flexible.js"></script>
<!-- <script src=""></script> -->
</head>
<body>
<div id="app"></div>
</body>
</html>
网友评论