Tag:Custom attributes
-
Detailed introduction to HTML5 custom attribute data-* and JS operation examples
Of course, the advanced browser can define and access data through scripts. It is very useful in project practice. For example: Copy code The codes are as follows: <div id = “user” data-uid = “12345” data-uname = “developpaer” > </div> Use the attribute method to access the value of the data-* custom attribute It is […]