我收到一个字符串作为输入,如何获取 div 之间的值?例如:
var temp = "This is line one.<div>This is line two.</div><div><br></div><div>This is line three with a line break</div><div><br></div><div> </div><div><br></div><div>This is line four with a line break and space.</div>";
如何在数组中取出文本句子?我在 'div' 上尝试过 .filter 和 .each ,但他们都错过了第一个。