正文光标定位 + commonAncestorIP云V管理员/2022-09-08/0 阅读 09/08小程序:扫一扫查出行【扫一扫了解最新限行尾号】复制小程序 self.cmd.range.setStartBefore().collapse(true)self.cmd.select() 通过dom节点设置range的范围<h1>content</h1>选在h1之后 <h1>..</h1> 光标在这选在h1最后一个节点之后 <h1>content 光标在这</h1>这是容易不理解的地方