How come nodeElement.append('cat') actually appends text inside the node object

后端 未结 0 1447
情深已故
情深已故 2021-01-21 06:11

How come element.append(\'cat\') actually appends text to the element node object. Shouldn\'t it be trying to append a string at the end of an element node?

Expected:

相关标签:
回答
  • 消灭零回复
提交回复
热议问题