Time:04-02
CodePudding user response:
can consider to copy a virtual dom elements, the operating data of virtual dom elements and then take innerHTML can
Var table=document. The createElement method (" table "); Table. The innerHTML='& lt; Tbody> 123 & lt;/td> '; The console. The log (table. InnerHTML); Table. The getElementsByTagName (' tbody) [0]. Remove (); The console. The log (table. InnerHTML);
Page link:https//www.codepudding.com/frontend/106732.html