上一页 1 ··· 78 79 80 81 82 83 84 85 86 ··· 97 下一页
摘要: jquery设置html5音量的方法<pre> setTimeout(function() { alert(1); $('#music1')[0].volume = 0; setTimeout(function() { alert(2); $('#music1')[0].volume = 1; }, 阅读全文
posted @ 2019-11-14 12:04 newmiracle宇宙 阅读(989) 评论(0) 推荐(0) 编辑
摘要: PHP防止客户端多次点击 第一种用ip判断 第二种就是用 用户名第三种就是cookie仅限 H5第四种 用swoole 用swoole id 阅读全文
posted @ 2019-11-14 12:04 newmiracle宇宙 阅读(769) 评论(0) 推荐(0) 编辑
摘要: jQuery 触发事件 移动端和pc端的区别 <pre>mousedown event.pageXmousemove event.pageXmouseup event.pageXtouchstart event.originalEvent.touches[0].pageX & event.origi 阅读全文
posted @ 2019-11-14 12:02 newmiracle宇宙 阅读(447) 评论(0) 推荐(0) 编辑
摘要: linux No module named yum错误的解决办法 肯定是yum的版本与当前python的版本不一致造成的 <pre>所以修改yum的配置,修改文件: vim /usr/bin/yum 修改头#!/usr/bin/python => #!/usr/bin/python2.6</pre> 阅读全文
posted @ 2019-11-13 21:34 newmiracle宇宙 阅读(905) 评论(0) 推荐(0) 编辑
摘要: egret编译速度慢解决方法 直接用增量更新egret run -a 每次改完代码 保存都会自动编译 阅读全文
posted @ 2019-11-13 21:34 newmiracle宇宙 阅读(878) 评论(0) 推荐(0) 编辑
摘要: jquery写$ document.getElementById效果<pre>document.getElementById('video-canvas')和$('#video-canvas')[0]是相等的</pre> 阅读全文
posted @ 2019-11-13 21:33 newmiracle宇宙 阅读(269) 评论(0) 推荐(0) 编辑
摘要: egret缺点1 编译速度非常慢 2 就是强类型转换非常的麻烦 3 只能用ts 所以只能用他们的IDE 不能用sublime layaair唯一不足的就是 insepct太垃圾 占用游戏界面 所以建议用egret 不过开发3D还是用layaair吧 阅读全文
posted @ 2019-11-13 21:33 newmiracle宇宙 阅读(1000) 评论(0) 推荐(0) 编辑
摘要: jquey写进度条问题可以直接按照 总时间和进度条宽度之比来做 不管他是不是y=kx 反正时间到0 进度肯定是0了 阅读全文
posted @ 2019-11-13 21:32 newmiracle宇宙 阅读(83) 评论(0) 推荐(0) 编辑
摘要: php imagick 文字居中的方法<pre> public function getwenzinfo($nickName) { $nickNamelen = mb_strlen($nickName, 'utf-8'); $wzallkd = 0; $wzallkdlist = array(); 阅读全文
posted @ 2019-11-13 21:32 newmiracle宇宙 阅读(1457) 评论(0) 推荐(0) 编辑
摘要: php 环境require(): open_basedir restriction in effect 错误 错误日志显示,访问脚本不在 open_basedir的限定目录里面 解决方法打开fastcgi.conf设置如下fastcgi_param PHP_ADMIN_VALUE "open_bas 阅读全文
posted @ 2019-11-13 21:31 newmiracle宇宙 阅读(234) 评论(0) 推荐(0) 编辑
上一页 1 ··· 78 79 80 81 82 83 84 85 86 ··· 97 下一页