|
@@ -8,24 +8,8 @@
|
|
|
</style>
|
|
|
</head>
|
|
|
<body>
|
|
|
- <!-- <div
|
|
|
- style="width: 120px;background-color: rgba(0, 0, 0, 0.85);border-radius: 5px;display: flex;flex-direction: column;padding: 8px;justify-content: center;position: absolute;bottom: 50px;right: 50px;">
|
|
|
- <button
|
|
|
- style="margin-bottom: 8px;height: 30px;background-color: rgba(52, 137, 255, 1.0);color: rgb(255, 255, 255);border: 0px solid red;border-radius: 5px;">回退</button>
|
|
|
- <button
|
|
|
- style="height: 30px;background-color: rgba(88, 185, 45, 1.0);color: rgb(255, 255, 255);border: 0px solid red;border-radius: 5px;">完成</button>
|
|
|
- </div> -->
|
|
|
- <div id="btnDemo">测试</div>
|
|
|
+ <div></div>
|
|
|
</body>
|
|
|
</html>
|
|
|
<script>
|
|
|
- let btnDemo = document.getElementById('btnDemo');
|
|
|
- btnDemo.addEventListener('pointerdown', function() {
|
|
|
- console.log("LLL");
|
|
|
- })
|
|
|
-
|
|
|
- console.log(btnDemo);
|
|
|
- var evt = document.createEvent("Event");
|
|
|
- evt.initEvent("pointerdown", true, true);
|
|
|
- window.dispatchEvent(evt);
|
|
|
</script>
|