getSelection(); console.log(selection); 通過上面的程式碼在控制檯檢視;. anchorNode: {node} 節點; 包含了使用者選取內容的起點的節點。
確定! 回上一頁