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

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

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

    1. <i id='MaSCe'><tr id='MaSCe'><dt id='MaSCe'><q id='MaSCe'><span id='MaSCe'><b id='MaSCe'><form id='MaSCe'><ins id='MaSCe'></ins><ul id='MaSCe'></ul><sub id='MaSCe'></sub></form><legend id='MaSCe'></legend><bdo id='MaSCe'><pre id='MaSCe'><center id='MaSCe'></center></pre></bdo></b><th id='MaSCe'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='MaSCe'><tfoot id='MaSCe'></tfoot><dl id='MaSCe'><fieldset id='MaSCe'></fieldset></dl></div>
      <tfoot id='MaSCe'></tfoot>
        <bdo id='MaSCe'></bdo><ul id='MaSCe'></ul>
      1. 傳遞“#"url的請求參數中的哈希符號在Firefo

        Passing quot;#quot; hash symbol in request parameter of url not working in Firefox(傳遞“#url的請求參數中的哈希符號在Firefox中不起作用)
          <tbody id='C9nP7'></tbody>
            <bdo id='C9nP7'></bdo><ul id='C9nP7'></ul>
            1. <tfoot id='C9nP7'></tfoot>

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

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

                1. <legend id='C9nP7'><style id='C9nP7'><dir id='C9nP7'><q id='C9nP7'></q></dir></style></legend>
                  本文介紹了傳遞“#"url的請求參數中的哈希符號在Firefox中不起作用的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我正在使用 AJAX 執行 struts 操作,一切正常,但 Firefox 出現問題,當我將 URL 中的參數作為請求參數傳遞時,如果該參數最后包含哈希(#)符號,那么firefox 會刪除該符號之后的所有內容,并在沒有它的情況下將該參數發送到操作.

                  I am hitting a struts action using AJAX, everything is fine but there is problem with Firefox , when i am passing the parameter in URL as a request parameter and if that parameter, contains hash(#) symbol in the end, then firefox strips everything after that symbol and send that parameter to action without it.

                  例如,如果我在 Firefox 中通過了 test123#abcd,那么我在動作類中只得到 test123,而不是 test123#abcd,這對我的要求來說是不可取的.對于 IE,它工作得很好.有什么辦法可以我可以提取完整的參數,包括 Firefox 中的 # 符號.

                  For example, if im passing test123#abcd in Firefox, then i am getting only test123 in action class as opposed to test123#abcd which is undesirable for my requirement.For IE it is working perfectly.Is there any way by which i can extract the full parameter including the # symbol in Firefox.

                  如果我還需要發布 java 操作代碼,請告訴我,謝謝.

                  please let me know if i need to post the java action code also,thanks.

                  JS 片段

                  var valuePassword=test123#abcd;
                  
                      var url = "/test/ChangePwdAjax.do?newPass="+valuePassword;
                              var xmlHTTP = getXMLHTTPRequest();
                  

                  推薦答案

                  使用

                  var url = "/test/ChangePwdAjax.do?newPass="+ encodeURIComponent(valuePassword);
                  

                  這會將您的 valuePassword 編碼為有效的 URL 組件,該組件可以作為 URL 中的查詢字符串傳遞

                  This will encode your valuePassword to a valid URL component which can be passed as a query string in URLs

                  另一方面,您應該使用 decodeURIComponent 從編碼字符串中獲取值

                  And on the other side you should use decodeURIComponent to get the value from encoded string

                  var value = decodeURIComponent(valuePasswordPassed);
                  

                  要了解更多信息去這里

                  這篇關于傳遞“#"url的請求參數中的哈希符號在Firefox中不起作用的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

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

                  相關文檔推薦

                  Browser waits for ajax call to complete even after abort has been called (jQuery)(即使在調用 abort (jQuery) 之后,瀏覽器也會等待 ajax 調用完成)
                  JavaScript innerHTML is not working for IE?(JavaScript innerHTML 不適用于 IE?)
                  XMLHttpRequest cannot load, No #39;Access-Control-Allow-Origin#39; header is present on the requested resource(XMLHttpRequest 無法加載,請求的資源上不存在“Access-Control-Allow-Origin標頭) - IT屋-程序員軟件開發技術分
                  Is it possible for XHR HEAD requests to not follow redirects (301 302)(XHR HEAD 請求是否有可能不遵循重定向 (301 302))
                  NETWORK_ERROR: XMLHttpRequest Exception 101(NETWORK_ERROR:XMLHttpRequest 異常 101)
                  XMLHttpRequest 206 Partial Content(XMLHttpRequest 206 部分內容)

                      1. <i id='o75P0'><tr id='o75P0'><dt id='o75P0'><q id='o75P0'><span id='o75P0'><b id='o75P0'><form id='o75P0'><ins id='o75P0'></ins><ul id='o75P0'></ul><sub id='o75P0'></sub></form><legend id='o75P0'></legend><bdo id='o75P0'><pre id='o75P0'><center id='o75P0'></center></pre></bdo></b><th id='o75P0'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='o75P0'><tfoot id='o75P0'></tfoot><dl id='o75P0'><fieldset id='o75P0'></fieldset></dl></div>
                          <tbody id='o75P0'></tbody>

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

                          <legend id='o75P0'><style id='o75P0'><dir id='o75P0'><q id='o75P0'></q></dir></style></legend>
                          • <bdo id='o75P0'></bdo><ul id='o75P0'></ul>

                            <tfoot id='o75P0'></tfoot>
                            主站蜘蛛池模板: 久久91av| 日本不卡免费新一二三区 | 伊人成人免费视频 | 九九久久国产 | 国产日韩欧美精品一区二区三区 | 久久久久久国产 | 欧美日韩一区在线观看 | 欧美爱爱视频 | 99久久免费精品国产免费高清 | 欧美一级欧美三级在线观看 | com.国产| 欧美色综合一区二区三区 | 中文字幕综合 | 欧美日韩国产在线 | 欧美中文字幕一区二区三区亚洲 | 天天久久| 日韩中文一区二区三区 | 国产做a爱免费视频 | 中文字幕在线免费视频 | 色男人的天堂 | 亚洲天堂一区二区 | 欧美一二三区 | 国产精品自拍视频 | 麻豆久久久9性大片 | 精品国产91乱码一区二区三区 | 色综合一区二区 | 日本欧美国产在线观看 | 成人在线免费 | 五月香婷婷 | 一级毛片大全免费播放 | 伊色综合久久之综合久久 | 日韩av一区在线观看 | 亚洲精品欧美精品 | 一区二区三区不卡视频 | 日韩有码一区二区三区 | 成人超碰 | 99热在线播放| 国产精品视频一二三区 | 亚洲成人久久久 | 精品国产一级 | 精品国产一区二区三区久久影院 |