怎样获取用户当前选中的文本 就是按住鼠标左键以后拖动选中的文本, 可以通过window.getSelection()方法获取; window.getSelection().toString(); // 选中的文本