removeAllRanges (); // 清除现有选择(如果有的话) document.getSelection(). ... 如果选择已存在,则首先使用 removeAllRanges() 将其清空。然后添加范围。
確定! 回上一頁