pbootcms网站模板|日韩1区2区|织梦模板||网站源码|日韩1区2区|jquery建站特效-html5模板网

  • <i id='Nf1dP'><tr id='Nf1dP'><dt id='Nf1dP'><q id='Nf1dP'><span id='Nf1dP'><b id='Nf1dP'><form id='Nf1dP'><ins id='Nf1dP'></ins><ul id='Nf1dP'></ul><sub id='Nf1dP'></sub></form><legend id='Nf1dP'></legend><bdo id='Nf1dP'><pre id='Nf1dP'><center id='Nf1dP'></center></pre></bdo></b><th id='Nf1dP'></th></span></q></dt></tr></i><div class="gm6m2c2" id='Nf1dP'><tfoot id='Nf1dP'></tfoot><dl id='Nf1dP'><fieldset id='Nf1dP'></fieldset></dl></div>
  • <small id='Nf1dP'></small><noframes id='Nf1dP'>

        <bdo id='Nf1dP'></bdo><ul id='Nf1dP'></ul>

        <legend id='Nf1dP'><style id='Nf1dP'><dir id='Nf1dP'><q id='Nf1dP'></q></dir></style></legend>

        <tfoot id='Nf1dP'></tfoot>

        jquery 屬性選擇器找不到屬性

        attributes not found by jquery attribute selector(jquery 屬性選擇器找不到屬性)
            <bdo id='p1Xcb'></bdo><ul id='p1Xcb'></ul>
          • <small id='p1Xcb'></small><noframes id='p1Xcb'>

            • <legend id='p1Xcb'><style id='p1Xcb'><dir id='p1Xcb'><q id='p1Xcb'></q></dir></style></legend>

              <tfoot id='p1Xcb'></tfoot>
              <i id='p1Xcb'><tr id='p1Xcb'><dt id='p1Xcb'><q id='p1Xcb'><span id='p1Xcb'><b id='p1Xcb'><form id='p1Xcb'><ins id='p1Xcb'></ins><ul id='p1Xcb'></ul><sub id='p1Xcb'></sub></form><legend id='p1Xcb'></legend><bdo id='p1Xcb'><pre id='p1Xcb'><center id='p1Xcb'></center></pre></bdo></b><th id='p1Xcb'></th></span></q></dt></tr></i><div class="mocsueg" id='p1Xcb'><tfoot id='p1Xcb'></tfoot><dl id='p1Xcb'><fieldset id='p1Xcb'></fieldset></dl></div>

                <tbody id='p1Xcb'></tbody>

                  本文介紹了jquery 屬性選擇器找不到屬性的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我需要重新提出我的老問題,我可能不應該在凌晨 1 點問過它:P

                  I need to reask my old question, I probably shouldnt have asked it at 1am :P

                  使用 jquery 的屬性選擇器似乎找不到某些屬性:

                  It seems that some attributes are not being found using jquery's attribute selector:

                  $("*[some=value]");
                  

                  到目前為止,我似乎無法使用表單的 action 屬性和 img 的 src 屬性.是否有某個屬性列表不起作用,以便我可以為它們編寫自定義選擇器?

                  So far it seems that i cant use form's action attribute, and img's src attribute. Is there a list somewhere of attributes that do not work so i can write custom selectors for them?

                  再次感謝!

                  似乎沒有人相信某些選擇器不能按預期工作.看這個例子:在 this site (上面有 jquery 1.3 for firebugging)有一個看起來像這個:

                  No one seems to believe that some selectors do not work as expected. Look at this example: On this site (which has jquery 1.3 on it for firebugging) there is a form that looks like this:

                  <form style="display: inline;" method="get" action="list">
                  

                  (它圍繞搜索當前下載"下拉菜單).如果您打開 firebug 并嘗試使用此選擇器:

                  (its around the 'search current downloads' dropdown). If you open firebug and try this selector:

                  $("form[action=list]"); 
                  

                  您將無法選擇表單.action 屬性沒有什么特別之處.該頁面上徽標圖像的 src 也是如此:

                  you will NOT be able to select the form. There is nothing special about the action attribute. Same goes for the src of the logo image on that page:

                  <img alt="Logo" src="/p/aost/logo?logo_id=1238551994"/>
                  

                  不起作用的選擇器是:

                  $("img[src=/p/aost/logo?logo_id=1238551994");
                  

                  當然,我可以進行通配符匹配,這不是我想要的.

                  Sure, i can do wildcard matches, that is not what i am after.

                  推薦答案

                  沒有不受支持的屬性的列表",因為不應該有;這是 jQuery 中的一個錯誤.

                  There is no "list" of unsupported attributes because there shouldn't be; this is a bug in jQuery.

                  這里是公開的門票:

                  • 無法使用action屬性選擇表單
                  • attr "action" 的表單和 Selectors 的屬性過濾器
                  • 屬性src"的選擇器與 1.2.6 中的工作方式不同

                  顯然,這些錯誤之間的共同點是 jQuery 將您指定的選擇器字符串與完整的 URL 進行比較,而不是 HTML 中定義的實際 action/src 屬性.這解釋了為什么 attributeEndsWith 或 attributeContains 選擇器在這種情況下確實有效.

                  Apparently the common denominator between the bugs is that jQuery is comparing the selector string you specify against the full URL as opposed to the actual action/src attribute as it is defined in the HTML. This explains why the attributeEndsWith or the attributeContains selectors do work in this case.

                  我建議只為表單/圖像提供一個類/ID 并完成它.

                  I would recommend just giving the form/image a class/ID and getting it over with.

                  這篇關于jquery 屬性選擇器找不到屬性的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  XPath one of multiple attribute values with condition(XPath 具有條件的多個屬性值之一)
                  Is alt the same as alt=quot;quot;?(alt 和 alt= 一樣嗎?)
                  JavaScript Element.value vs Element.getAttribute(quot;valuequot;)(JavaScript Element.value 與 Element.getAttribute(value))
                  CSS attribute selector + descendant gives a bug in Webkit?(CSS 屬性選擇器 + 后代在 Webkit 中出現錯誤?)
                  How to remove an attribute in D3.js?(如何刪除 D3.js 中的屬性?)
                  html5: Significance of attribute named required in checkbox/radio(html5:復選框/收音機中名為 required 的屬性的意義)

                    <bdo id='lo3zD'></bdo><ul id='lo3zD'></ul>
                  • <i id='lo3zD'><tr id='lo3zD'><dt id='lo3zD'><q id='lo3zD'><span id='lo3zD'><b id='lo3zD'><form id='lo3zD'><ins id='lo3zD'></ins><ul id='lo3zD'></ul><sub id='lo3zD'></sub></form><legend id='lo3zD'></legend><bdo id='lo3zD'><pre id='lo3zD'><center id='lo3zD'></center></pre></bdo></b><th id='lo3zD'></th></span></q></dt></tr></i><div class="s0qcg22" id='lo3zD'><tfoot id='lo3zD'></tfoot><dl id='lo3zD'><fieldset id='lo3zD'></fieldset></dl></div>
                        • <tfoot id='lo3zD'></tfoot><legend id='lo3zD'><style id='lo3zD'><dir id='lo3zD'><q id='lo3zD'></q></dir></style></legend>

                              <tbody id='lo3zD'></tbody>

                            <small id='lo3zD'></small><noframes id='lo3zD'>

                            主站蜘蛛池模板: 橡胶电子拉力机-塑料-微电脑电子拉力试验机厂家-江苏天源 | 济南网站策划设计_自适应网站制作_H5企业网站搭建_济南外贸网站制作公司_锐尚 | 电子书导航网_电子书之家_电子书大全_最新电子书分享发布平台 | 地磅-地秤-江阴/无锡地磅-江阴天亿计量设备有限公司_ | 济南律师,济南法律咨询,山东法律顾问-山东沃德律师事务所 | 农业仪器网 - 中国自动化农业仪器信息交流平台 | 地磅-地秤-江阴/无锡地磅-江阴天亿计量设备有限公司_ | 标准品网_标准品信息网_【中检计量】 | 液压油缸-液压站生产厂家-洛阳泰诺液压科技有限公司 | 青岛美佳乐清洁工程有限公司|青岛油烟管道清洗|酒店|企事业单位|学校工厂厨房|青岛油烟管道清洗 插针变压器-家用电器变压器-工业空调变压器-CD型电抗器-余姚市中驰电器有限公司 | 铣刨料沥青破碎机-沥青再生料设备-RAP热再生混合料破碎筛分设备 -江苏锡宝重工 | 北京发电车出租-发电机租赁公司-柴油发电机厂家 - 北京明旺盛安机电设备有限公司 | 公交驾校-北京公交驾校欢迎您! 工作心得_读书心得_学习心得_找心得体会范文就上学道文库 | 淋巴细胞分离液_口腔医疗器材-精欣华医疗器械(无锡)有限公司 | 江苏南京多语种翻译-专业翻译公司报价-正规商务翻译机构-南京华彦翻译服务有限公司 | ERP企业管理系统永久免费版_在线ERP系统_OA办公_云版软件官网 | 合肥网带炉_安徽箱式炉_钟罩炉-合肥品炙装备科技有限公司 | 武汉宣传片制作-视频拍摄-企业宣传片公司-武汉红年影视 | 密集架-密集柜厂家-智能档案密集架-自动选层柜订做-河北风顺金属制品有限公司 | 传递窗_超净|洁净工作台_高效过滤器-传递窗厂家广州梓净公司 | 九州网址_专注于提供网址大全分享推广中文网站导航服务 | 广州/东莞小字符喷码机-热转印打码机-喷码机厂家-广州瑞润科技 | 螺旋绞龙叶片,螺旋输送机厂家,山东螺旋输送机-淄博长江机械制造有限公司 | 无机纤维喷涂棉-喷涂棉施工工程-山东华泉建筑工程有限公司▲ | 济南铝方通-济南铝方通价格-济南方通厂家-山东鲁方通建材有限公司 | 密集架-密集柜厂家-智能档案密集架-自动选层柜订做-河北风顺金属制品有限公司 | 美国PARKER齿轮泵,美国PARKER柱塞泵,美国PARKER叶片泵,美国PARKER电磁阀,美国PARKER比例阀-上海维特锐实业发展有限公司二部 | 实验室pH计|电导率仪|溶解氧测定仪|离子浓度计|多参数水质分析仪|pH电极-上海般特仪器有限公司 | 广东护栏厂家-广州护栏网厂家-广东省安麦斯交通设施有限公司 | 昆明网络公司|云南网络公司|昆明网站建设公司|昆明网页设计|云南网站制作|新媒体运营公司|APP开发|小程序研发|尽在昆明奥远科技有限公司 | 大功率金属激光焊接机价格_不锈钢汽车配件|光纤自动激光焊接机设备-东莞市正信激光科技有限公司 定制奶茶纸杯_定制豆浆杯_广东纸杯厂_[绿保佳]一家专业生产纸杯碗的厂家 | 热工多功能信号校验仪-热电阻热电偶校验仿真仪-金湖虹润仪表 | 暴风影音 | 外贸网站建设-外贸网站设计制作开发公司-外贸独立站建设【企术】 | 影合社-影视人的内容合作平台| 盘式曝气器-微孔曝气器-管式曝气器-曝气盘-斜管填料 | 郑州市前程水处理有限公司 | 定制异形重型钢格栅板/钢格板_定做踏步板/排水沟盖板_钢格栅板批发厂家-河北圣墨金属制品有限公司 | 执业药师报名时间,报考条件,考试时间-首页入口 | 磁力抛光研磨机_超声波清洗机厂家_去毛刺设备-中锐达数控 | 北京包装设计_标志设计公司_包装设计公司-北京思逸品牌设计 | 氧化锆纤维_1800度高温退火炉_1800度高温烧结炉-南京理工宇龙新材料股份有限公司 |