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"; }
摘要: H5学习路线图 前端入门: 页面布局与重构, HTML CSS 移动前端开发: 响应式布局, HTML5 CSS Web交互开发: JavaScript, jQuery Ajax 前端高级开发: 原生开发, 移动端开发 HTML5基础 H5结构标签,标签类型 H5新标签语义,属性语法 H5新功能标签 阅读全文
posted @ 2018-08-15 09:40 Solomon_xm 阅读(209) 评论(0) 推荐(0) 编辑