createRange () 用於定義一個範圍,接著使用 selectNodeContents() 全選指定的DOM 內的文字,最後透過 getSelection() 回傳selection 的範圍.
確定! 回上一頁