Swiper中文论坛
标题:
clearSwiperAnimate对于svg对象会提示错误
[打印本页]
作者:
q447552640
时间:
2016-8-19 23:00
标题:
clearSwiperAnimate对于svg对象会提示错误
allBoxes[i].className.replace is not a function
建议这么修改代码
allBoxes[i].style.visibility = "hidden";
if (allBoxes[i].className.baseVal != null) {
allBoxes[i].className.baseVal = allBoxes[i].className.baseVal.replace("animated", " ");
}
else {
allBoxes[i].className = allBoxes[i].className.replace("animated", " ");
}
欢迎光临 Swiper中文论坛 (http://bbs.swiper.com.cn/)
Powered by Discuz! X3.2