Is it possible to view jQuery added data in Chrome

前端 未结 5 1928
青春惊慌失措
青春惊慌失措 2021-02-03 19:37

When creating websites I often use jQuery\'s .data() function to add data to elements.

Is it possible to view all data which is stored with an element in Ch

5条回答
  •  粉色の甜心
    2021-02-03 20:36

    Type into the chrome console:

    console.log($('selector').data());
    

    and it will list the data in that element

提交回复
热议问题