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

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

      <tfoot id='NhHfo'></tfoot>
      1. <legend id='NhHfo'><style id='NhHfo'><dir id='NhHfo'><q id='NhHfo'></q></dir></style></legend>

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

        JavaScript innerHTML 不適用于 IE?

        JavaScript innerHTML is not working for IE?(JavaScript innerHTML 不適用于 IE?)
          <tbody id='MJ74t'></tbody>

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

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

          • <bdo id='MJ74t'></bdo><ul id='MJ74t'></ul>
          • <tfoot id='MJ74t'></tfoot>

                  本文介紹了JavaScript innerHTML 不適用于 IE?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我正在使用 ajax 調用為我的下拉列表帶來列表并將其分配給 html,適用于 mozilla nad crome 但對于 IE,它顯示一個空白下拉列表

                  I am using ajax call for to bring the list for my drop down and assign it to html,works fine for mozilla nad crome but for IE it displays a blank dropdown

                  var xmlhttp;
                  
                  var strURL = "selectedu.php?selectward="+selectward;
                  
                  if (window.XMLHttpRequest)
                  {// code for IE7+, Firefox, Chrome, Opera, Safari
                      xmlhttp=new XMLHttpRequest();
                  }
                  else
                  {// code for IE6, IE5
                      xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
                  }
                  xmlhttp.onreadystatechange = function(){
                      if (xmlhttp.readyState==4 && xmlhttp.status==200)
                      {
                          if(xmlhttp.responseText=="NOER")
                          {
                              alert("Select ER Type");
                          }
                          else
                          {
                              document.getElementById(id).innerHTML=xmlhttp.responseText;
                          }   
                      }
                  }
                  xmlhttp.open("GET",strURL,true);
                  xmlhttp.send();
                  

                  推薦答案

                  innerHTML屬性在IE中嘗試添加或更新表單元素時出現問題,解決方法是創建一個div并設置附加到 DOM 之前的 innerHtml 屬性:

                  The innerHTML property has some problems in IE when trying to add or update form elements, the workaround is to create a div and set the innerHtml property on that before appending to the DOM:

                  var newdiv = document.createElement("div");
                  newdiv.innerHTML = xmlhttp.responseText;
                  var container = document.getElementById(id);
                  container.appendChild(newdiv);
                  

                  這篇關于JavaScript innerHTML 不適用于 IE?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

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

                  相關文檔推薦

                  Browser waits for ajax call to complete even after abort has been called (jQuery)(即使在調用 abort (jQuery) 之后,瀏覽器也會等待 ajax 調用完成)
                  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 部分內容)
                  Restrictions of XMLHttpRequest#39;s getResponseHeader()?(XMLHttpRequest 的 getResponseHeader() 的限制?)
                • <legend id='2SV9M'><style id='2SV9M'><dir id='2SV9M'><q id='2SV9M'></q></dir></style></legend>

                        <tbody id='2SV9M'></tbody>

                      <small id='2SV9M'></small><noframes id='2SV9M'>

                      <tfoot id='2SV9M'></tfoot>

                          <bdo id='2SV9M'></bdo><ul id='2SV9M'></ul>

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

                            主站蜘蛛池模板: 北条麻妃av一区二区三区 | 精品真实国产乱文在线 | 91亚洲精| 国产一级片网站 | 天天亚洲 | 国产一区二区三区视频 | 黄网免费 | 亚洲日本中文字幕在线 | 91精品国产色综合久久 | 2018国产大陆天天弄 | 国产成人在线看 | 欧美电影免费观看 | 日本不卡一区 | 久久精品视频在线免费观看 | 亚洲综合婷婷 | 在线观看国产www | 国产一区二区精品在线 | 亚洲九色 | 国产1区| 国产午夜精品一区二区三区四区 | 国产一区欧美 | 在线观看黄视频 | 久久精品国产一区二区三区不卡 | 午夜av成人| 欧美日韩视频在线第一区 | 五月综合激情婷婷 | 久久er精品| 免费一级淫片aaa片毛片a级 | 日本福利一区 | 黄色一级电影在线观看 | 亚洲社区在线 | 久久久日韩精品一区二区三区 | 精品中文在线 | av电影一区 | 成人毛片视频免费 | 国产精品久久久久久久久免费软件 | 欧美激情一区二区三区 | 国产成人免费视频网站高清观看视频 | 一区二区欧美在线 | 欧美日日 | 午夜久久久久久久久久一区二区 |