|
|
|
|
.InsertLastChild (Función) Añade un hijo después del hijo del nodo actual en un HTML Document. hDoc is htmlDocument = " <html> <head/> <body> <h2><span> <p>Text</p> </span></h2><h3></h3> </body> </html> " hNode is htmlNode // body: <div id="div"><p>Text</p></div> hNodeInsert is htmlNode hSearchNode is array of htmlNode <- hDoc.FindElementByTag("h3") hNode <- hSearchNode[1] hNodeInsert..TagName = "div" hNode.InsertFirstChild(hNodeInsert) // body: <h1/><h2><span><p>Text</p></span></h2><h3><div/></h3> hNodeInsert..TagName = "span" hNode.InsertLastChild(hNodeInsert) // body: <h1/><h2><span><p>Text</p></span></h2><h3><div/><span/></h3> Trace(hDoc)
Sintaxis
<Source node>.InsertLastChild(<Node to insert>)
<Source node>: htmlNode Variable Nombre de la variable htmlNode que corresponde al nodo reference de inserción. <Node to insert>: htmlNode Variable Nombre de la htmlNode Variable que corresponde al nodo hijo a insertar después del último hijo de <nodo fuente>. Clasificación Lógica de negocio / UI: Lógica de negocio Componente: wd290html.dll
Esta página también está disponible para…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|