上一页 1 ··· 50 51 52 53 54 55 56 57 58 ··· 98 下一页
摘要: linux php composer安装和使用教程建议在linux下 下载后 然后再下载到本地 win上最好别用composer下载速度超级慢 或者根本下不动 项目依赖包 安装 Composer,你只需要下载 composer.phar 可执行文件。<pre>cd /home/curl -sS ht 阅读全文
posted @ 2019-11-16 19:40 newmiracle宇宙 阅读(1294) 评论(0) 推荐(0)
摘要: PHP 命名空间笔记 1.php文件代码如下<pre><?php//我用这样的命名空间表示处于blog下的article模块namespace Blog\Article; class Comment { function __construct(){ //初始化对象,将初始化值放在括号内 echo' 阅读全文
posted @ 2019-11-16 19:40 newmiracle宇宙 阅读(102) 评论(0) 推荐(0)
摘要: linux shell根据端口返回进程号杀死进程的方法<pre>kill `lsof -t -i:9501`</pre>这个就是杀死9501端口的进程号 阅读全文
posted @ 2019-11-16 19:40 newmiracle宇宙 阅读(1424) 评论(1) 推荐(0)
摘要: jquery关于移动端的点击事件解析 如果用click来写 你连续点几下 会没有反应 响应是非常慢的 所以移动端必须用touchstart代替click来写 阅读全文
posted @ 2019-11-16 19:39 newmiracle宇宙 阅读(1911) 评论(0) 推荐(0)
摘要: PHP 函数禁用设置方法先找到php.ini 然后搜索disable_function 直接在上面添加你要禁用的函数就可以了 然后记得重启php-fpm(如果装了php-fpm) 阅读全文
posted @ 2019-11-16 19:39 newmiracle宇宙 阅读(1173) 评论(0) 推荐(0)
摘要: javascript判断字符串变量是否为空的方法代码如下<pre> if (typeof(ndesc)=="undefined" || ndesc=='' || ndesc==null) { ndesc="1111!"; }</pre> ps:ndesc 变量没有初始化 typeof(ndesc) 阅读全文
posted @ 2019-11-16 19:13 newmiracle宇宙 阅读(10432) 评论(0) 推荐(0)
摘要: CSS3做动物走路效果 采用的CSS3切换序列帧做 核心代码如下<pre>.game .role { width: 60px; height: 86px; position: absolute; top: -83px; background-image: url(../images/role5.pn 阅读全文
posted @ 2019-11-16 19:13 newmiracle宇宙 阅读(418) 评论(0) 推荐(0)
摘要: javascript碰撞检测的方法需要把要检测碰撞的精灵都放到数组里array push 然后循环遍历数组里的精灵检测碰撞 ps:不放到数组里没办法循环遍历检测每个精灵核心代码如下 <pre>//0.1秒刷新检测碰撞 update: function (dt) { //循环遍历每个精灵 for (x 阅读全文
posted @ 2019-11-16 19:12 newmiracle宇宙 阅读(411) 评论(0) 推荐(0)
摘要: CSS3手机端字体不能小于12号的方法 <pre> .xiaoyu12fontsize{ -webkit-transform-origin: 0% 0%; -webkit-transform:scale(0.8); }</pre> 阅读全文
posted @ 2019-11-16 19:11 newmiracle宇宙 阅读(470) 评论(0) 推荐(0)
摘要: PHP微信发红包简明教程1首先进入公众号申请微信支付 申请成功账号密码会发到你指定的邮箱 是登陆商户平台的2 进入后申请发红包借口3 调用发红包接口 https://api.mch.weixin.qq.com/mmpaymkttransfers/sendredpack 参数写对 证书也是在你邮箱里( 阅读全文
posted @ 2019-11-16 19:11 newmiracle宇宙 阅读(200) 评论(0) 推荐(0)
上一页 1 ··· 50 51 52 53 54 55 56 57 58 ··· 98 下一页