失去选中的网页内容

得到选中的网页内容IE测试通过?function getSelectText() {??? return document.selection && document.se

得到选中的网页内容

IE测试通过

?

function getSelectText() {
??? return document.selection && document.selection.createRange().text || window.getSelection && window.getSelection() || document.getSelection && document.getSelection() || '';
}

?

?

?

使用: var selectText = getSelectText()