Home  >  Q&A  >  body text

javascript - How to determine whether the DOM element is loaded? Including dynamically added with JS

domcontentloaded can determine whether the page DOM is loaded, but it cannot determine whether it is dynamically added. How to determine this?

淡淡烟草味淡淡烟草味2711 days ago472

reply all(2)I'll reply

  • 天蓬老师

    天蓬老师2017-05-19 10:12:59

    node.contains()

    reply
    0
  • PHP中文网

    PHP中文网2017-05-19 10:12:59

    No solution.
    Everything added dynamically is added by yourself, so you definitely know when the addition is completed, so you can make the callback function yourself

    reply
    0
  • Cancelreply