wc-view icon indicating copy to clipboard operation
wc-view copied to clipboard

滑动图片结束触发的transitionend时间时报错:

Open yangmin5530 opened this issue 6 years ago • 1 comments

Cannot read property 'index' of undefined

yangmin5530 avatar Mar 13 '18 08:03 yangmin5530

不知道你是否和我同样的问题,我是在img外面又包了一层div,所以在index.js中,获取this.children会发生错误,作者是直接在img上做的循环,所以如果你在外面包了div,正确的获取this.children的方法应该是var children = parent.parentElement.children; this.children = toArray(children);

Mercizzy avatar Nov 20 '18 03:11 Mercizzy