使用window.getSelection()獲取div中選中文字內容及位置window.getSelection().toString() //選中內容window.getSelection().anchorOffset; //
確定! 回上一頁