var slideIndex = 1; showSlides(slideIndex); function plusSlides(n) { showSlides(slideIndex += n); } function currentSlide(n) { showSlides(slideIndex = n); } function showSlides(n) { var i; var slides = document.getElementsByClassName("mySlides"); var dots = document.getElementsByClassName("dot"); if (n > slides.length) {slideIndex = 1} if (n < 1) {slideIndex = slides.length} for (i = 0; i < slides.length; i++) { slides[i].style.display = "none"; } for (i = 0; i < dots.length; i++) { dots[i].className = dots[i].className.replace(" active", ""); } slides[slideIndex-1].style.display = "block"; dots[slideIndex-1].className += " active"; }
摘要: 转自:https://www.cnblogs.com/lijuntao/p/6700904.html 今天接到一个需求,需要微信授权另一个项目(微信投票项目),但之前已经有一个项目(麦唱K歌房微信端)做了微信网页授权的业务,因为微信网页回调的地址只能填一个而且不能在上面加端口,所以就造成回调后直接返 阅读全文
posted @ 2019-06-27 00:08 Solomon_xm 阅读(241) 评论(0) 推荐(0) 编辑