JS计算两组经纬度坐标之间的距离 /* 计算两组经纬度坐标之间的距离 * @param lat1 纬度1 * @param lng1 经度1 * @param lat2 纬度2 * @param lng2 经度2 * @param int len_type 返回值类型(1-m 2-km) * @param int decimal 保留小数位数 * @return int */ function getDistanc 前端 2020年05月27日 120 点赞 0 评论 4615 浏览
网页H5获取全国各省市经纬度代码 demo地址:http://datav.aliyun.com/tools/atlas/地名:全国 adcode:100000JSON API https://geo.datav.aliyun.com/areas_v2/bound/100000.json JSON API(包含子区域) https://geo.datav.aliyun.com/areas_v2/bound/100000_f 前端 2020年05月27日 2 点赞 0 评论 3800 浏览
ASP日期转换/计算星期函数 function CaculateWeekDay(y,m,d) if m=1 then m = 13 y = y-1 end if if m=2 then m = 14 y = y -1 end if week=(d+2*m+3*(m+1)/5+y+y/4-y/100+y/400) mod 7+1 weekstr="" select case ASP 2020年05月27日 118 点赞 0 评论 4708 浏览
PHP获取今天、昨天、明天、本周、本月、上月开始时间和结束时间 <?php echo "今天:".date("Y-m-d")."<br>"; echo "昨天:".date("Y-m-d",strtotime("-1 day")), "<br>"; echo "明天:".date("Y-m-d",strtotime("+1 day")). "<br>"; echo "一周后:". PHP 2020年05月22日 3 点赞 0 评论 3788 浏览
cocos create 找茬游戏源码 演示地址:http://find_fault.cc.2177.com.cn/源码下载地址:链接:https://pan.baidu.com/s/1Kx9fR_4O7F9cdmuBZwBiQg 提取码:kxub Cocos 2020年05月14日 2 点赞 0 评论 4120 浏览
Python实现微信找茬小游戏 自动找出图片差异 腾讯官方出了一个小程序的找茬游戏,如下示意:很多时候“眼疾手快”比不过别人,只好寻找一种便捷的玩法:程序自动实现!这里使用的是Python3第一步:获取手机截图 os.system("adb.exe exec-out screencap -p >screenshot.png") 上面的命令获得的截图在windows系统上会出错,这是由于windows默认使用的换行符为\r\n 而Andrio Python 2020年05月10日 3 点赞 0 评论 4688 浏览
PHP 获取二维数组中某个key的集合 具体是这样的,如下一个二维数组,是从库中读取出来的。代码清单: $user = array( 0 => array( 'id' => 1, 'name' => '张三', 'email' => 'zhangsan@sina.com', ), 1 => array( 'id' PHP 2020年05月05日 2 点赞 0 评论 3217 浏览
jQuery的post()和serialize()方法 jQuery的serialize()方法的作用。jQuery官网的API:http://api.jquery.com/或参照该例子的中文API:http://jquery.cuishifeng.cn/jQuery.post.html例子: $("#button").click(function() { $.post("index.php", $("#myform").serialize( 前端 2020年05月05日 204 点赞 0 评论 3687 浏览
phpstudy8 thinkphp 伪静态配置 打开管理 ,选择伪静态 输入以下内容: if (!-e $request_filename) { rewrite ^(.*)$ /index.php?s=$1 last; break; } PHP 2020年04月28日 2 点赞 0 评论 5330 浏览