📅  最后修改于: 2022-03-11 15:03:16.433000             🧑  作者: Mango
代码示例1
var parser = new DOMParser();
var htmlDoc = parser.parseFromString(txt, 'text/html');
htmlDoc.getElementById("someID");