How does the data-toggle attribute work? (What's its API?)

前端 未结 2 1125
一整个雨季
一整个雨季 2020-12-23 11:20

Bootstrap uses a custom attribute named data-toggle. How does this feature behave? Does using it require Bootstrap\'s JavaScript library? Also, which data-toggl

2条回答
  •  死守一世寂寞
    2020-12-23 11:47

    The data-* attributes is used to store custom data private to the page or application

    So Bootstrap uses these attributes for saving states of objects

    W3School data-* description

提交回复
热议问题