脚本:
$('.gray').remove()
var output = [];
$(['王海洋', '陈自然', '贾扉扉', '李恝', '吴伟俊', '万钟玲', '郭华翔', '陈材华', '周自强', '沈宇辰']).each(function () {
var user = this;
var list = [];
$('.rpy_li').each(function () {
var str = $(this).text();
if (str.indexOf(user) > -1) {
list.push(str.replace(user, '\n'));
}
})
output.push(user + ' ' + list.reverse());
})
console.log(output.join('\n'))