jQuery :target 选择器

jQuery 教程 · 2019-03-10 20:42:19

定义和用法

:target 选择器选择由文档URI的格式化识别码表示的目标元素。

提示:如果文档的URI包含一个格式化的标识符或 hash(哈希),那么 :target 选择器将匹配ID和标识符相匹配的元素。 例如,给定的URI http://example.com/#foo,则$( "p:target" ),将选择<p id="foo">元素。

语法

$( ":target" )

点击查看所有 jQuery 教程 文章: https://www.codercto.com/courses/l/35.html

查看所有标签

Algorithms Illuminated (Part 2)

Algorithms Illuminated (Part 2)

Tim Roughgarden / Soundlikeyourself Publishing, LLC / 2018-8-5 / USD 17.99

Algorithms are the heart and soul of computer science. Their applications range from network routing and computational genomics to public-key cryptography and machine learning. Studying algorithms can......一起来看看 《Algorithms Illuminated (Part 2)》 这本书的介绍吧!

在线进制转换器
在线进制转换器

各进制数互转换器

随机密码生成器
随机密码生成器

多种字符组合密码

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试