摘要:
<div id="div1">111111111</div> <button onclick="handleClick()">OK</button> <script type="text/javascript" charset="utf-8"> const div1 = document.query 阅读全文
posted @ 2023-03-11 11:23
chicidol
阅读(51)
评论(0)
推荐(0)
摘要:
如果不能自动播放,就模拟元素点击事件 1、隐藏掉播放按钮2、模拟点击播放按钮 //隐藏按钮 document.getElementsByClassName('btn')[0].style.opacity=0; //模拟点击播放 if(document.all) {// 兼容IE document.g 阅读全文
posted @ 2023-03-11 11:22
chicidol
阅读(299)
评论(0)
推荐(0)
摘要:
js中与webview通信 function setStyle(){ console.log('1111') return function () { console.log('2222') try{ console.log('3333') //隐藏图片 document.getElementsBy 阅读全文
posted @ 2023-03-11 11:15
chicidol
阅读(538)
评论(0)
推荐(0)