How can I add a child to a node at a specific position?

前端 未结 3 1747
别跟我提以往
别跟我提以往 2021-02-19 02:26

I have a node which has two children: an HTML text and an HTML element.

Installation on server

3条回答
  •  醉话见心
    2021-02-19 03:01

    Thanks Pesto for your almost correct solution.

    The working solution is:

    node.children.first.add_previous_sibling(span_node)
    

提交回复
热议问题