IE其他版本的獲取方式如下:
var isIE=!!document.all;
if(isIE){
var rng=window.getSelection.createRange();
str = rng.text;
} else {
var s = window.getSelection();
str = s.toString();
}
請問IE11下如何獲取?
I think, I found a solution. Not the best and nicest but it is working for me: I can create the exact same TextRange from Selection.
http://jsfiddle.net/p4Lu4/4/