摘要:
1 输入地址获取经纬度 http://lbs.qq.com/tool/getpoint/2 修改url https://apis.map.qq.com/uri/v1/marker?marker=coord:39.892326,116.342763;title:超好吃冰激凌;addr:手帕口桥北铁路道 阅读全文
posted @ 2019-11-14 12:32
newmiracle宇宙
阅读(945)
评论(1)
推荐(0)
摘要:
jssdk分享报错解决方法 一般都是参数传错了 阅读全文
posted @ 2019-11-14 12:32
newmiracle宇宙
阅读(224)
评论(0)
推荐(0)
摘要:
jquery手机端横屏判断方法<pre>$(function() { var bodywidth = $('body').width(); var bodyheight = $('body').height(); if (bodywidth >= bodyheight) { /*横屏*/ } els 阅读全文
posted @ 2019-11-14 12:31
newmiracle宇宙
阅读(817)
评论(0)
推荐(0)
摘要:
PHP创建文件命名中文乱码解决的方法 <pre>iconv('utf-8', 'gbk', $dir); </pre> 因为系统环境是gbk 所以里面的字符也要gbk 编码一致才不会乱码 ps 请不要重复执行2次 不然会乱码 阅读全文
posted @ 2019-11-14 12:29
newmiracle宇宙
阅读(627)
评论(0)
推荐(0)
摘要:
javascript 字符串转化成函数执行<pre>function func_abc(){ alert('a');}var str = "func_abc";eval(str+"()");//执行func_abc()函数</pre> 阅读全文
posted @ 2019-11-14 12:29
newmiracle宇宙
阅读(3308)
评论(0)
推荐(0)
摘要:
PHP Notice: Undefined index:解决方法 PHP Notice: Undefined index: 解决方法 <pre> if (empty(swoole_get_local_ip()['eth1'])) { } else { }</pre> 加个exmpty就可以了 阅读全文
posted @ 2019-11-14 12:28
newmiracle宇宙
阅读(361)
评论(0)
推荐(0)
摘要:
windows下载安装swoole的方法先安装Cygwin 选择163镜像(速度非常快) add url http://mirrors.163.com/cygwin/ 然后安装gcc php pcre-devel autoconf模块 如图下 选择安装的软件包,这里需要安装gcc、php、php开发 阅读全文
posted @ 2019-11-14 12:28
newmiracle宇宙
阅读(595)
评论(0)
推荐(0)
摘要:
jquery判断手指滑动方向 <pre> /*判断哪个滑动方向还是自己改下 要么上下 要么左右*/ var startX; var startY; $(".shanghua").on("touchstart", function(e) { // 判断默认行为是否可以被禁用 if (e.cancela 阅读全文
posted @ 2019-11-14 12:26
newmiracle宇宙
阅读(364)
评论(0)
推荐(0)
摘要:
javascript监听手机返回键 <pre> if (window.history && window.history.pushState) { $(window).on('popstate', function() { var hashLocation = location.hash; var 阅读全文
posted @ 2019-11-14 12:26
newmiracle宇宙
阅读(296)
评论(0)
推荐(0)
摘要:
html5 点击播放video的方法<pre> <video videosrc="{$vo.shipinurl}" controls="" x5-playsinline="" playsinline="" webkit-playsinline="" poster=""> </video> var v 阅读全文
posted @ 2019-11-14 12:22
newmiracle宇宙
阅读(4847)
评论(0)
推荐(0)

浙公网安备 33010602011771号