var sbbaidu = '';for (i = 0; i < document.querySelectorAll('.ie-fix p').length; i++) {var sxbaidu = document.querySelectorAll('.ie-fix p')[i].innerHTML + '\n';if(sxbaidu.indexOf("img") == -1){ sbbaidu += sxbaidu;}}console.log(sbbaidu);
复制到别的地方,记得把内容都展开,可以把 replace成\r\n
链接:https://www.zhihu.com/question/47571804/answer/1918767844