Rumah > Soal Jawab > teks badan
<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>
kanglecheng2019-07-19 14:32:35
Hanya tambah pertimbangan untuk pelaporan ralat, sila rujuk https://www.php.cn/blog/detail/14059.html