window.getSelection和document.selection window.getSelection和document.selection IE9以下支持:document.selection IE9、Firefox、Safari、Chrome和Opera支持:window.getSelection()