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

    • <bdo id='cgzXZ'></bdo><ul id='cgzXZ'></ul>
    <legend id='cgzXZ'><style id='cgzXZ'><dir id='cgzXZ'><q id='cgzXZ'></q></dir></style></legend>
  • <small id='cgzXZ'></small><noframes id='cgzXZ'>

    1. <tfoot id='cgzXZ'></tfoot>

      <i id='cgzXZ'><tr id='cgzXZ'><dt id='cgzXZ'><q id='cgzXZ'><span id='cgzXZ'><b id='cgzXZ'><form id='cgzXZ'><ins id='cgzXZ'></ins><ul id='cgzXZ'></ul><sub id='cgzXZ'></sub></form><legend id='cgzXZ'></legend><bdo id='cgzXZ'><pre id='cgzXZ'><center id='cgzXZ'></center></pre></bdo></b><th id='cgzXZ'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='cgzXZ'><tfoot id='cgzXZ'></tfoot><dl id='cgzXZ'><fieldset id='cgzXZ'></fieldset></dl></div>
      1. IE 8/9 中 FormData 的后備

        Fallback for FormData in IE 8/9(IE 8/9 中 FormData 的后備)

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

          <small id='0SLoL'></small><noframes id='0SLoL'>

          • <bdo id='0SLoL'></bdo><ul id='0SLoL'></ul>

                    <tbody id='0SLoL'></tbody>
                  本文介紹了IE 8/9 中 FormData 的后備的處理方法,對(duì)大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  FormData 在 IE 8/9 中不存在,但我需要這些瀏覽器中的功能.有一個(gè)很好的后備方案嗎?

                  FormData does not exist in IE 8/9 but I need that functionality in those browsers. Is there a nice fallback for this?

                  我會(huì)嘗試通過 json 數(shù)據(jù)發(fā)送,但我需要將文件傳遞給服務(wù)器.我將此文件附加到現(xiàn)代瀏覽器中的 formData 并提交一個(gè) XHR 請(qǐng)求.因?yàn)?FormData 在 IE 8/9 中不存在,這顯然失敗了.

                  I would try to send over json data, but I need to pass over a file to the server. I append this file to the formData in modern browsers and just submit an XHR request. Because FormData does not exist in IE 8/9 this obviously fails.

                  // I cant seem to get this to work with a file.
                  $.ajax({
                      url: '/genericHandlers/UploadDocsFile.ashx',
                      type: "POST",
                      data: model.toJSON(),
                      contentType: 'application/json'
                      }).done(function  (data) { 
                         log('stuff happened!');
                      });
                  

                  也許另一種方法是在 js 中創(chuàng)建一個(gè)假表單對(duì)象,然后將數(shù)據(jù)附加到該對(duì)象?

                  Maybe an alternative is to create a fake form object in js then append the data to that?

                  推薦答案

                  我只知道一種可能的解決方案,但這并不是 IE 真正的 1-1 后備方案.沒有可能用于發(fā)送文件的通信 API,因?yàn)槟鸁o法在舊瀏覽器中綁定輸入字段,例如在使用 FormData 的現(xiàn)代瀏覽器中.但是您可以使用 iframe 發(fā)送整個(gè)表單.對(duì)于這種情況,您可以使用支持 XHR DataForm 和 iframe 的 jquery.form 插件(當(dāng)瀏覽器不支持 FormData API 時(shí)使用 iframe 發(fā)送數(shù)據(jù)).

                  I know only one possible solution, but it's not really 1-1 fallback for IEs. There are no possible communication API for sending files, because you cannot bind input fields in old browsers, like in a modern ones using FormData. But you can send whole form using an iframe. For this case you can use jquery.form plugin that support XHR DataForm and iframe (data sends with iframe when browser do not FormData API support).

                  這篇關(guān)于IE 8/9 中 FormData 的后備的文章就介紹到這了,希望我們推薦的答案對(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)容)

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

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

                          1. <small id='yjFZP'></small><noframes id='yjFZP'>

                            主站蜘蛛池模板: 国产欧美精品一区二区 | 国产婷婷精品 | 欧美在线天堂 | 中文字幕av中文字幕 | 国产成人一区二区三区电影 | 国产91一区 | 欧美精品综合在线 | 日韩在线 | 日韩电影中文字幕 | 欧美在线不卡 | 国产激情第一页 | 国产高清精品网站 | 成人久久视频 | 一区免费 | 日韩在线一区视频 | 国产视频线观看永久免费 | 久久精品一区二区 | 日本欧美视频 | 欧美精品日韩 | 久久精品亚洲欧美日韩久久 | 成人a视频| 亚洲v日韩v综合v精品v | 俺去俺来也www色官网cms | 欧美一级黄| 亚洲精品一区中文字幕乱码 | 色小姐综合网 | 亚洲精品区 | 毛片一区二区三区 | 高清人人天天夜夜曰狠狠狠狠 | 嫩草国产| 天天操网 | www.久草.com| 欧美日韩在线看 | 免费在线成人网 | 亚洲精品一区二区三区蜜桃久 | 亚洲国产偷 | 亚洲品质自拍视频网站 | 欧美视频第三页 | 91福利电影在线观看 | 夜夜爽99久久国产综合精品女不卡 | 国产精品视频免费观看 |