ie11下,插入框架Html

if(navigator.userAgent.indexOf("MSIE")>0 || (navigator.userAgent.indexOf("Trident") > -1 && navigator.userAgent.indexOf("rv:11") > -1)){
  if(window.getSelection){
    var img = document.createElement("img");
    img.src = ‘http://static.qyer.com/images/ask/temp/ask_append_img.png‘;
    img.className = ‘js_load_pic‘;
    var m = editor.getSelection().getRangeAt(0);
    if(m){
      editor.document.body.appendChild(img);
    }
  }else{
  editor.document.selection.createRange().pasteHTML(‘<img src="http://static.qyer.com/images/ask/temp/ask_append_img.png" class="js_load_pic"/>‘) ;  }
}else{
  editor.document.execCommand("insertHTML", null, ‘<img src="http://static.qyer.com/images/ask/temp/ask_append_img.png" class="js_load_pic"/>‘); 
  //插入HTML }

 

ie11下,插入框架Html,布布扣,bubuko.com

ie11下,插入框架Html

上一篇:web.xml配置


下一篇:Visual Prolog 的 Web 专家系统 (2)