兼容firefox/IE的 取消 选择 文本
默认分类 2011-09-15 04:51:49
- if (document.selection && document.selection.empty)
- document.selection.empty() ;
- else if(window.getSelection)
- {
- var sel=window.getSelection();
- if(sel && sel.removeAllRanges)
- sel.removeAllRanges() ;
- }
>>
留言评论