execCommand insertHTML中断存储的window.getSelection() 当使用选择文本和恢复页面中所选文本的方法时,我发现在两者之间运行execCommand('insertHTML...会导致存储的选择中断. 这是有关如何选择和还原文本的示例. // Get Selection var sel = window.getSelection().getRangeAt(0); // Clear Selections window.getSelectio .. 发布时间:2020-06-14 18:44:22 getselection execcommand inserthtml 其他开发