q447552640 发表于 2016-8-19 23:00:52

clearSwiperAnimate对于svg对象会提示错误

allBoxes.className.replace is not a function

建议这么修改代码

allBoxes.style.visibility = "hidden";
      if (allBoxes.className.baseVal != null) {
            allBoxes.className.baseVal = allBoxes.className.baseVal.replace("animated", " ");
      }
      else {
            allBoxes.className = allBoxes.className.replace("animated", " ");
      }
页: [1]
查看完整版本: clearSwiperAnimate对于svg对象会提示错误