首页 > 技术文章 > data相关应用
chenglj 2018-01-02 15:59 原文
文案参考:HTML5中的data-*属性和jQuery中的.data()方法使用
data属性选择器
$("li[data-id='1']")//选择li元素中data-id属性等于1的
jQuery选择器参考