在Ueditor的内容区添加一个下拉选框改变事件

<script>
html='';
html=html+`
  <select name="" onchange='this.appendChild(document.getElementsByClassName("son-option")[0]);'>
  <option value="张三" class="son-option">张三</option>
  <option value="李四" class="son-option">李四</option>
  </select>
`;
</script>

``   模板字符

模板字符串函数传参方式:    ${pramas}

在Ueditor的内容区添加一个下拉选框改变事件

 

相关文章:

  • 2021-12-20
  • 2021-07-14
  • 2022-12-23
  • 2022-12-23
  • 2022-01-23
  • 2021-05-19
  • 2021-07-08
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案