add Function

nano > def > add
Adds a new child node. Can be a HTML node or a parameters object.

Summary

ElementFunction
ReturnsObject

Arguments

objObject[required] HTML node or nano constructor parameters.

Example

handler.add({ tag: 'span', text: 'I was added!' });
CodeMessageLineFile
2count(): Parameter must be an array or an object that implements Countable224/home2/njsorg/public_html/pagetype/content/pages/en/docml.viewer.php