IE测试通过
function getSelectText() {
return document.selection && document.selection.createRange().text || window.getSelection && window.getSelection() || document.getSelection && document.getSelection() || '';
}
使用: var selectText = getSelectText()