创建范围功能不工作IE11 [英] Create range function not working IE11

查看:76
本文介绍了创建范围功能不工作IE11的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

createRange函数和createTextRange函数在IE11中不起作用。任何人都可以帮我这个

createRange function and createTextRange functions are not working in IE11.Can any one help me is there any alternative funcion for this

推荐答案

    var osel;
    if(window.getSelection){
    	osel=window.getSelection();
    }else{
    	osel = (document.selection.createRange()).htmlText;    
    }





这篇关于创建范围功能不工作IE11的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆