久久久久久久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>
                            主站蜘蛛池模板: 亚洲精品免费在线 | 欧美日韩在线看 | 亚洲福利网 | 国产成人免费在线视频 | 国产一级片视频 | www.av在线播放 | 视频一区二区三区在线观看 | 九九香蕉视频 | 黄频在线观看 | 免费一级a毛片 | 一区二区三区在线观看视频 | 91tv国产成人福利 | 日韩精品一区二区在线 | 日韩国产在线播放 | 青青草视频 | 日韩欧美第一页 | 国产精品一区二区三区四区 | 久久久中文 | 亚洲精品视频在线播放 | 91国产丝袜在线播放 | 午夜精品国产精品大乳美女 | 国产精品久久久国产盗摄 | 欧美性猛交xxxx黑人猛交 | 欧美综合色 | 在线小视频| 91精品国自产在线观看 | 国产综合久久久 | www亚洲天堂 | 亚洲黄色影院 | 91精品国自产在线观看 | 色综合天天综合网国产成人网 | 在线日韩欧美 | 日韩亚洲天堂 | 中文字幕伊人 | 天天操天天拍 | 成人三级晚上看 | 久久精品在线 | 秋霞福利视频 | 久久久免费看 | 久久精品久久久久 | 欧美激情一区 |