search

Home  >  Q&A  >  body text

javascript - js efficient element position replacement

js High-efficiency element position replacement
ul

li
li
li
li
li
li
li

Two element position replacement

阿神阿神2747 days ago646

reply all(1)I'll reply

  • 伊谢尔伦

    伊谢尔伦2017-05-19 10:40:59

    Parent element.insertBefore (the child element to be swapped, the child element already exists as a reference)

    reply
    0
  • Cancelreply