code: function addClass (dom, className) {
    /* istanbul ignore if */
    if (!dom) {
      return
    }
    let curClassName = dom.className
    if (!curClassName) {
      dom.className = className
    } else {
      dom.className = curClassName + ' ' + className
    }
  }
docs: 追加class