久久久久久久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的請(qǐng)求參數(shù)中的哈希符號(hào)在Firefo

        Passing quot;#quot; hash symbol in request parameter of url not working in Firefox(傳遞“#url的請(qǐng)求參數(shù)中的哈希符號(hào)在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的請(qǐng)求參數(shù)中的哈希符號(hào)在Firefox中不起作用的處理方法,對(duì)大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  我正在使用 AJAX 執(zhí)行 struts 操作,一切正常,但 Firefox 出現(xiàn)問題,當(dāng)我將 URL 中的參數(shù)作為請(qǐng)求參數(shù)傳遞時(shí),如果該參數(shù)最后包含哈希(#)符號(hào),那么firefox 會(huì)刪除該符號(hào)之后的所有內(nèi)容,并在沒有它的情況下將該參數(shù)發(fā)送到操作.

                  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,那么我在動(dòng)作類中只得到 test123,而不是 test123#abcd,這對(duì)我的要求來說是不可取的.對(duì)于 IE,它工作得很好.有什么辦法可以我可以提取完整的參數(shù),包括 Firefox 中的 # 符號(hào).

                  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.

                  如果我還需要發(fā)布 java 操作代碼,請(qǐng)告訴我,謝謝.

                  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);
                  

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

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

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

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

                  var value = decodeURIComponent(valuePasswordPassed);
                  

                  要了解更多信息去這里

                  這篇關(guān)于傳遞“#"url的請(qǐng)求參數(shù)中的哈希符號(hào)在Firefox中不起作用的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

                  相關(guān)文檔推薦

                  Browser waits for ajax call to complete even after abort has been called (jQuery)(即使在調(diào)用 abort (jQuery) 之后,瀏覽器也會(huì)等待 ajax 調(diào)用完成)
                  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 無法加載,請(qǐng)求的資源上不存在“Access-Control-Allow-Origin標(biāo)頭) - IT屋-程序員軟件開發(fā)技術(shù)分
                  Is it possible for XHR HEAD requests to not follow redirects (301 302)(XHR HEAD 請(qǐng)求是否有可能不遵循重定向 (301 302))
                  NETWORK_ERROR: XMLHttpRequest Exception 101(NETWORK_ERROR:XMLHttpRequest 異常 101)
                  XMLHttpRequest 206 Partial Content(XMLHttpRequest 206 部分內(nèi)容)

                      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>
                            主站蜘蛛池模板: 97伦理最新伦理 | 狠狠躁躁夜夜躁波多野结依 | 性色的免费视频 | 国产精品区一区二区三区 | 欧美日韩在线观看视频 | 亚洲欧美一区二区在线观看 | 日日射夜夜骑 | 日韩久久精品视频 | 国产成人99久久亚洲综合精品 | 亚洲精品国产区 | 黄免费观看视频 | 日韩精品在线网站 | 国产91久久久久久久免费 | 亚洲欧美一区二区三区国产精品 | 95国产精品 | 羞羞网站在线观看 | 99热精品国产 | 99亚洲国产精品 | 国产你懂的在线观看 | 久久精品中文 | 欧美一级在线免费观看 | 久久久999精品 | 国产精品美女久久久久aⅴ国产馆 | 全免费a级毛片免费看视频免费下 | 成人一区二 | h在线播放 | 天天综合久久网 | av在线二区 | 日韩电影免费在线观看中文字幕 | 成人在线日韩 | 999精品视频 | 7777久久| 亚洲精选一区 | 美女在线国产 | 国产在线成人 | 亚洲精品一二三区 | 国产精彩视频 | 黄视频在线网站 | 亚洲国产一区二区三区在线观看 | 一级特黄在线 | 精品一区二区三区在线观看 |