How to get start and end index so that both match from DOM and Database both place indexes should be same

前端 未结 0 822
终归单人心
终归单人心 2021-01-24 04:18

How to get start and end index using javascript?

I wrote the following code:

var selection = document.getSelection();
   var start = selection.anchorOffset         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题