xutongbao
  getSelectedText() {
    if (window.getSelection) {
      return window.getSelection().toString();
    } else if (document.selection) {
      return document.selection.createRange().text;
    }
    return \'\'
  }

 

分类:

技术点:

相关文章:

  • 2021-11-17
  • 2021-11-04
  • 2021-12-03
  • 2021-04-19
  • 2021-09-29
  • 2021-12-18
  • 2021-08-14
  • 2021-12-20
猜你喜欢
  • 2021-12-04
  • 2021-08-14
  • 2021-10-02
  • 2021-12-09
  • 2021-12-04
  • 2021-12-16
  • 2021-08-15
相关资源
相似解决方案