JS清除DIV的选中状态

var clearSlct = "getSelection" in window ? function () {

    window.getSelection().removeAllRanges();

} : function () {

    document.selection.empty();

};

 

posted @ 2013-07-18 14:16  Xdoudou  阅读(1205)  评论(0编辑  收藏  举报