jQuery 1.12/2.2 未计入文档的修改 meathill 8 年前 之前可以这样写 $('[href=#hash]') 现在必须这样写 $('[href="#hash"]') 其它属性选择器,如 attr^="#value" 等,也一样。