摘要: function getSelectedText(){ var selectedText = ''; if (document.selection) { var range = document.selection.createRange(); selectedText = range.text; } else if (window.getSelection) { selectedText = window.getSelection(); } return selectedText;} 阅读全文
posted @ 2011-08-04 12:30 wiseshrek 阅读(204) 评论(0) 推荐(0) 编辑