function getInsertBtn(){
              //创建input元素
        var inp = document.createElement("input");
        inp.type = "button";
        inp.addEventListener('click', function () {
            openLayerUrl('@Url.Action("PartialChildNodeView", "UEditor")');getBtnValue(this.value);printBtnValue()
        })
        let addButtonLength = Number($('.addButton>input').length)+1;
        inp.value = "知识点" + addButtonLength;
        $(".addButton").append($(inp))
         
    }
    <div>
        <input style="float:left"  />
    </div>
  <div class="addButton">
        <input  />
    </div>

 

相关文章:

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