山维空间
AboutAppsMizu Financial
AboutAppsMizu Financial
JavaScriptAI从 jQuery 里学习设计模式JavaScript 异步开发全攻略
B 站视频油管频道GitHub拜拜-网上拜佛姆伊游戏书BattleshipAIGAZOU扫雷游戏
Zeabur(Vercel 竞品)超好用的后端 LeanCloudDigital OceanVultr VPS
首页/jQuery/jQuery 1.12/2.2 未计入文档的修改

jQuery 1.12/2.2 未计入文档的修改

2016-02-011 分钟阅读jQueryjQuery属性选择器selector

之前可以这样写

    $('[href=#hash]')

现在必须这样写

    $('[href="#hash"]')

其它属性选择器,如 attr^="#value" 等,也一样。

觉得文章有帮助?

如果我的分享对你有所启发,欢迎通过赞助来支持我持续创作。

❤️ 赞助我
返回文章列表
jQuery
#jQuery#属性选择器#selector

评论

山维空间

19+ years of full-stack dev experience. Passionate about building useful products and sharing knowledge.

Quick Links

  • Archives
  • Apps
  • About
  • Sponsor

Tech Stack

VueReactNode.jsTypeScriptNext.jsCloudflare

© 2026 Meathill. Made within Chongqing

v0.8.1粤ICP备15055091号-1