document对象有createRange()方法吗?有的话,是什么意思?解决方案

document对象有createRange()方法吗?有的话,是什么意思?document对象有createRange()方法吗?有的话,是什么

document对象有createRange()方法吗?有的话,是什么意思?
document对象有createRange()方法吗?有的话,是什么意思?

[解决办法]
document.selection.createRange() 根据当前文字选择返回 TextRange 对象,或根据控件选择返回 ControlRange 对象。