Options
All
  • Public
  • Public/Protected
  • All
Menu

Functions

Functions

toggleClass

  • toggleClass<K>(el: Element, obj: Record<K, string>): toggle

切换 DOM 元素的 class

Type parameters

Parameters

  • el: Element

    DOM 元素

  • obj: Record<K, string>

    切换的状态/class 键值对象

Returns toggle

根据状态切换 class 的函数

  • Inherited
  • Protected
  • Private
  • Static
  • Module
  • Object
  • Property
  • Function
  • Variable
  • Index
  • Type
  • Class
  • Interface
  • Enum
  • Constructor
  • Getter/Setter
Made with ❤️ by pirix-gh. Documentation generated by TypeDoc.