Home >Web Front-end >JS Tutorial >Performance comparison of Javascript createElement and innerHTML for adding page elements_javascript skills
Recently I encountered an efficiency problem with js, which was about adding new elements to the page.
Suppose we have a page as follows: