- 博客(3)
- 资源 (2)
- 问答 (1)
- 收藏
- 关注
原创 使用ajax读取接口,并渲染到表格中
html页面 <table> <tr> <th> Totalweekly</th> <th>Moderna</th> <th>pfizer</th> <th>janssen</th> <th>AstraZe
2022-01-25 18:59:46 2229
原创 php 判断1-2000之间的所有闰年,每十个换一行输出。
闰年如何计算?能被4整除但不能被100整除的年份为普通闰年。(如2004年就是闰年,1999年不是闰年);世纪闰年:能被400整除的为世纪闰年。(如2000年是世纪闰年,1900年不是世纪闰年)。方法一:使用for循环<?php$i=0;//记录闰年个数for($year=1;$year<=2000;$year++){//循环1-2000年 if($year%100==0){//千禧年 if($year%400==0){//整除400为闰年
2021-11-02 08:00:00 1756
TA创建的收藏夹 TA关注的收藏夹
TA关注的人