Correcting teacher:PHPz
Correction status:qualified
Teacher's comments:
<h2><? echo '学生简介表单信息' ?></h2>
<ol>
<!-- php 模板变量 :充当前面的花括号{ endforeach充当后面的花括号} -->
<?php foreach ($names as $name): ?>
<li style="color:greenyellow">
<a href=""><? echo $name ?></a>
</li>
<?endforeach?>
</ol>
<script>
let preLi = document.querySelector("li").nextElementSibling.nextElementSibling;
console.log(preLi);
let names = ["小米 17 小米官网","小赖 14 放弃入门","小黄 12 开始学习"];
names.forEach(item => console.log(item));
</script>