可能重复:
How to replace text in html document without affecting the markup?
这应该相当简单,我似乎无法让它发挥作用 我想采取:
<div>Other text here XYZ more text</div>
并替换为获取:
<div>Other text here ABC more text</div>
我不知道关于div的id,class或任何内容,我不会意外地替换属性。只是中间的文字。没有Jquery。