Have a list of such a links. Want the value of the data key using cheerio/JQuery selector.
1 link:
<a href="#" class="ui-btn.stuff.stuff2" data-diffusion-decimal="1.9090" >xxx</a>
Have tried this:
$("a.ui-btn.stuff.stuff2").each(function(i, r) {
const decimal = $(r).data("diffusionDecimal");
}
Get decimal not defined.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…