獲得選中文本

字號:


    var content=document.getselection()
    這個(gè)就是獲取選中文本的內(nèi)容