Answer the question
In order to leave comments, you need to log in
Correct work of each in cheerio?
Goodnight! Need help!
There is this code:
var array = [], s_string = '';
$('.on-map article').each(function() {
s_string += $(this).find('b').first().text();
//в конце весь результат пушу в массив
array.push(s_string);
})
1 страница ['значение 1']
2 страница ['значение 1'] // Тут 2 блока
2 страница ['значение 1'] // Тут 2 блока
2 страница ['значение 2'] // Тут 2 блока
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question