Best way to add metadata to HTML elements

前端 未结 6 2177
孤独总比滥情好
孤独总比滥情好 2021-02-07 04:35

I\'m trying to put together a way of marking up various components in HTML that get parsed by a jQuery script and created when the page loads.

For example, at the moment

6条回答
  •  伪装坚强ぢ
    2021-02-07 05:03

    Use jquery's ".data" property. This is very handy and many people don't know about it.

    See this link for more information.

提交回复
热议问题