document.selection是一个对象,而不是只返回true,false的函数
要判断是否选中,可以用document.selection.type 来判断