我想在textNode中添加一个元素.例如:我有一个函数,用于在元素的textNode中搜索字符串.当我找到它时,我想用HTML元素替换.那有什么标准吗?谢谢.
html javascript replace textnode
html ×1
javascript ×1
replace ×1
textnode ×1