HTML Tips

DataSet Property are Case-Insensitive

HTML is case-insensitive, but often forgotten that dataset property name either. such as:

<div data-foobar data-fooBar data-foo-bar><div>

data-foobar data-fooBar are the same thing, map to dom dataset API of .dataset.foobar property.

To create a camel case dataset property, use dash separated, such as foo-bar as `dataset.fooBar.

If double dash foo--bar used, map to dataset['foo-Bar'].

©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

  • pyspark.sql模块 模块上下文 Spark SQL和DataFrames的重要类: pyspark.sql...
    mpro阅读 13,219评论 0 13
  • 第3章 基本概念 3.1 语法 3.2 关键字和保留字 3.3 变量 3.4 数据类型 5种简单数据类型:Unde...
    RickCole阅读 10,719评论 0 21
  • 第三章 Logback 配置 我们首先介绍配置 logback 的方法,以及许多示例配置脚本。logback所依赖...
    沈林楠阅读 4,738评论 0 0
  • **2014真题Directions:Read the following text. Choose the be...
    又是夜半惊坐起阅读 13,512评论 0 23
  • Spring Cloud为开发人员提供了快速构建分布式系统中一些常见模式的工具(例如配置管理,服务发现,断路器,智...
    卡卡罗2017阅读 136,146评论 19 139

友情链接更多精彩内容