SOURCE

let tmp = '120万人看过'.split(' · ');

let viewCount = tmp[0].replace('人看过', '');
let hotCount = tmp[1] ? tmp[1].replace('热度', '') : 0;

console.log(viewCount);

if (viewCount.indexOf('万')) {
    viewCount = viewCount.replace('万', '') * 10000;
}

if (hotCount.indexOf('万')) {
    hotCount = hotCount.replace('万', '') * 10000;
}

console.log(viewCount, hotCount);
console 命令行工具 X clear

                    
>
console