在Internet Explorer 11中,window.getselection().getRangeAt(0).getClientRects()
始终为空,而window.getSelecion().type
未定义。那么如何解决该问题?
sel = window.getSelection(); //sel.type is coming undefined
range=sel.getRangeAt(0);
rects=range.getClientRects(); //length is coming 0