code: function removeClass(elem, className) {
      // elem.classList.remove(className)
      if (hasClass(elem, className)) {
          var reg = new RegExp('(\\s|^)' + className + '(\\s|$)');
          elem.className = elem.className.replace(reg, ' ');
      }
  }
docs: 删除类