Blogger Information
Blog 6
fans 0
comment 0
visits 2932
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
PHP基础课第一次作业
阿远
Original
349 people have browsed it

0802作业

PHP

  1. <?php
  2. $CARS=['全新宝马 8系敞篷跑车','全新宝马 8系双开门跑车','全新宝马 8系长轴跑车'];
  3. foreach($cars as $car):
  4. ?>
  5. <ul>
  6. <li><a href="#"><?php echo $car ?>
  7. </a>
  8. </li>
  9. <?php endforeach ?>

js

  1. <script type = 'text/javascript'>
  2. let cars=['全新宝马 8系敞篷跑车','全新宝马 8系双开门跑车','全新宝马 8系长轴跑车'];
  3. for ( let h = 0; h <cars.length; h++){
  4. }
  5. </script>
Correcting teacher:PHPzPHPz

Correction status:qualified

Teacher's comments:js最好也输出数组,形成对比
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post