0
URL 목록을 통해 반복 할 것입니다. 제 질문은 어떻게 처음부터 'http : //'링크를 통해서만 루프 할 수 있습니까? 나는 아래 코드를 썼다.하지만 내가 필요한 것을 내게주지 않았다.목록에서 불필요한 문자열을 제거하십시오.
export class LoopThroughLinks {
loopurl() {
let newurls = [];
for (let i in getonetags) {
if (i.startsWith('http://')) {
let newurl = ParseSingleHtml.getPageContent(i);
newurls.push(newurl);
console.log(newurls);
}
}
}}
정확하게 작동하지 않는거야? – Wernerson