let items = document.getElementsByClassName('item'); let points = document.getElementsByClassName('point'); let p = document.getElementsByClassName('point'); let index = 0; //表示第几张图片在展示和第几个点,第index张照片有active这个类名 // 清除classname let clearActer = functi…