久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

  • <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="qwawimqqmiuu" 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="qwawimqqmiuu" 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="qwawimqqmiuu" 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'>

                            主站蜘蛛池模板: 亚洲午夜精品一区二区三区 | 在线色网 | 一区在线视频 | 福利视频一区二区 | 日韩精品一区二区三区在线播放 | 久草视频在线播放 | 婷婷色成人 | 最新国产精品精品视频 | 亚洲视频区 | 成人网在线| 久久一区二区av | 久久久成人一区二区免费影院 | 欧美日韩国产一区二区 | 91在线看视频 | 丁香久久| 在线一区二区三区 | 狠狠干狠狠操 | 日韩美女爱爱 | 少妇性l交大片免费一 | 日本视频在线播放 | 日韩伦理一区二区 | 国产精品高清一区二区三区 | 国产高清精品在线 | 91在线视频观看 | 精品国产伦一区二区三区观看体验 | 国产精品一区二区精品 | 欧美在线a | 欧美日韩在线观看一区二区三区 | 国产激情视频 | 国产精品久久国产精品 | 自拍偷拍亚洲欧美 | 青青久久 | 国产精品呻吟久久av凹凸 | 操射视频 | 成人黄页在线观看 | 在线免费激情视频 | 成人av一区| 午夜精品91 | 亚洲成人免费视频在线观看 | 日本一区二区在线视频 | 国产污视频在线 |