// 获取焦点
      let txt = document.getElementById("countRule");
      let temp = txt.value;
      txt.focus();
      let pointIndex = txt.selectionStart;
      let str1 = temp.substr(0,pointIndex);
      let str2 = temp.substr(pointIndex,temp.length);
      txt.value = str1+dom+str2;

      if( site != 'no' ){
        let newIndex = pointIndex + site;
        txt.setSelectionRange(newIndex,newIndex);
      }

  

相关文章:

  • 2022-01-02
  • 2022-12-23
  • 2021-09-11
  • 2021-10-03
  • 2022-12-23
  • 2022-12-23
  • 2021-12-23
  • 2021-10-03
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-22
  • 2022-12-23
  • 2021-10-03
相关资源
相似解决方案