笔记
teng316
走投无路的PHPer,开始接触Python和golang喽~~~
展开
-
linux查询筛选命令 grep、xargs
grepxargs原创 2020-08-22 11:16:19 · 5451 阅读 · 0 评论 -
PHP递归
function num1($n,$m=1){ static $x=1; if($n>0){ $x=$n*$m; $n--; echo $x; num1($n,$x); } return $x; } echo num1(4); // 24function num($n){ static $m=1; if($n>0){ $m*=$n; num(--$n); } return原创 2020-07-16 22:22:15 · 130 阅读 · 0 评论 -
原生html 实现全选
<!DOCTYPE html><html><head> <meta charset="utf-8"> <title></title></head><body> <button type="checkbox" id="checkall"/>全选</button> <div class="list"> <input type="checkbox" name原创 2020-06-09 23:21:02 · 460 阅读 · 0 评论 -
PHP获取客户端IP、坐标转换
记录了一些开发过程中用到的小方法1.坐标转换// 百度坐标转谷歌坐标function Convert_BD09_To_GCJ02($lat,$lng){ $x_pi = 3.14159265358979324 * 3000.0 / 180.0; $x = $lng - 0.0065; $y = $lat - 0.006; $z = sqrt($x * $x + $y * $y) - 0.00002 * sin($y * $x_pi);原创 2020-06-01 22:41:56 · 261 阅读 · 0 评论