上一页 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宇宙 阅读(1310) 评论(0) 推荐(0)
摘要: PHP 命名空间笔记 1.php文件代码如下<pre><?php//我用这样的命名空间表示处于blog下的article模块namespace Blog\Article; class Comment { function __construct(){ //初始化对象,将初始化值放在括号内 echo' 阅读全文
posted @ 2019-11-16 19:40 newmiracle宇宙 阅读(117) 评论(0) 推荐(0)
摘要: linux shell根据端口返回进程号杀死进程的方法<pre>kill `lsof -t -i:9501`</pre>这个就是杀死9501端口的进程号 阅读全文
posted @ 2019-11-16 19:40 newmiracle宇宙 阅读(1441) 评论(1) 推荐(0)
摘要: jquery关于移动端的点击事件解析 如果用click来写 你连续点几下 会没有反应 响应是非常慢的 所以移动端必须用touchstart代替click来写 阅读全文
posted @ 2019-11-16 19:39 newmiracle宇宙 阅读(1923) 评论(0) 推荐(0)
摘要: PHP 函数禁用设置方法先找到php.ini 然后搜索disable_function 直接在上面添加你要禁用的函数就可以了 然后记得重启php-fpm(如果装了php-fpm) 阅读全文
posted @ 2019-11-16 19:39 newmiracle宇宙 阅读(1210) 评论(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宇宙 阅读(10450) 评论(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宇宙 阅读(441) 评论(0) 推荐(0)
摘要: javascript碰撞检测的方法需要把要检测碰撞的精灵都放到数组里array push 然后循环遍历数组里的精灵检测碰撞 ps:不放到数组里没办法循环遍历检测每个精灵核心代码如下 <pre>//0.1秒刷新检测碰撞 update: function (dt) { //循环遍历每个精灵 for (x 阅读全文
posted @ 2019-11-16 19:12 newmiracle宇宙 阅读(430) 评论(0) 推荐(0)
摘要: CSS3手机端字体不能小于12号的方法 <pre> .xiaoyu12fontsize{ -webkit-transform-origin: 0% 0%; -webkit-transform:scale(0.8); }</pre> 阅读全文
posted @ 2019-11-16 19:11 newmiracle宇宙 阅读(478) 评论(0) 推荐(0)
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2019-11-16 19:11 newmiracle宇宙 阅读(16) 评论(0) 推荐(0)
上一页 1 ··· 50 51 52 53 54 55 56 57 58 ··· 98 下一页