第二天我在蒸。决定在这里问一个问题。
有:
<div contenteditabled="true" class="editor">text, my text. Get selected text, please help me to get position of selected text</div>
在 jquery 上,我试图找到所选文本的位置(开始和结束)。我尝试了谷歌的几个功能,但我没有找到正常的。
如何获得职位?需要将所选文本包装在标签中<b>...</b>
第二天我在蒸。决定在这里问一个问题。
有:
<div contenteditabled="true" class="editor">text, my text. Get selected text, please help me to get position of selected text</div>
在 jquery 上,我试图找到所选文本的位置(开始和结束)。我尝试了谷歌的几个功能,但我没有找到正常的。
如何获得职位?需要将所选文本包装在标签中<b>...</b>
不知道加不加
document.selection?