📜  数据组件属性 - 无论代码示例

📅  最后修改于: 2022-03-11 15:00:04.849000             🧑  作者: Mango

代码示例1
(data-component)data-* attributes gives us the ability to embed custom data attributes on all HTML elements.

eg . 

(now in the jquery you can use this value for anything (for eg. setteing the url/href attribute of this  tag)