随笔分类 - js
摘要:谷歌浏览器 在浏览器地址栏中输入: chrome://flags/#unsafely-treat-insecure-origin-as-secure 启动选项,并且添加你本地的开发地址 Edge edge://flags/#unsafely-treat-insecure-origin-as-secu
阅读全文
摘要:注意看 本文主要讲解uniapp打包成h5页面并部署在公众号时使用JSAPI的微信支付问题 前期准备工作 .首先要有一个开通商户注册的公众号,我们需要他的appid; .其次要开通商户公众号的公众号支付的功能并添加域名,开通完成后就可以基本开始我们的开发了 既然是jsapi开发 自然是要引入的 np
阅读全文
摘要:var swiper = new Swiper(".myswiper_fx", { slidesPerView: 'auto', freeMode: true, speed:6000, autoplay: { delay: 2500, disableOnInteraction: false, },
阅读全文
摘要:话不多说 code time const target = document.getElementById('sidebar-open'); let startX, startY; function handleStart(e) { startX = e.touches[0].clientX ||
阅读全文
摘要:可使用let play_box = document.getElementsByClassName('classname')[0].getElementsByClassName('classname')[0]获取某具体dom节点的子dom节点
阅读全文
摘要:解决echarts下钻地图,在平移和缩放后,下钻到下一级时生成的地图不在容器中间,会跑到容器外面去。 myChart.setOption(option,true) 问题:echart地图三级下钻地图在平移和缩放后,点击到省,由于中心点的偏移,省跑到容器以外的地方去了,导致新生成的地图看不见。 解决方
阅读全文