Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果我有一个空标签:
<tag/>
如何添加文本以便最终得到:
<tag>Hello World!</tag>
我似乎只能用不同的内容交换整个标签或在它之前/之后添加内容。
似乎我只需要使用调用:
my_node.inner_html my_content