The user logs in, queries the ranking list, how to obtain the ranking value through js, and reminds people within 30 people who are eligible to register through alert.
Mr.Lv
2019-07-19 11:17:42
<div class="row">
<div class="col-lg-12">
<div class="form-group mb-3">
<div class="form-control text-center" >您的积分总和为:{$score['perfor_sum']} 当前排名第<span id="ranking">{$ranking['perfor']}</span>位</div>
</div>
</div> <!-- end col -->
</div>
<script>
var oDiv = document.getElementById('ranking');
alert(oDiv.innerHTML);
</script>
Just add judgment. For error reporting, please refer to https://www.php.cn/blog/detail/14059.html
Can’t reply? ?