wc-view
wc-view copied to clipboard
滑动图片结束触发的transitionend时间时报错:
Cannot read property 'index' of undefined
不知道你是否和我同样的问题,我是在img外面又包了一层div,所以在index.js中,获取this.children会发生错误,作者是直接在img上做的循环,所以如果你在外面包了div,正确的获取this.children的方法应该是var children = parent.parentElement.children; this.children = toArray(children);