摘要: php的swoole的扩展可以实现WebSocket通信,方法如下 1、php添加swoole扩展; 一:两种安装方式:1》编译安装:1>wget http://pecl.php.net/get/swoole-1.9.6.tgz 或者 wget http://www.taikongliu.com/s 阅读全文
posted @ 2017-09-21 14:31 龍飛鳯舞 阅读(504) 评论(0) 推荐(0) 编辑
摘要: /* * 冒泡排序 */ $arr = array(4,5,2,15,9); $len = count($arr); //从后往前冒泡 $i从0开始 for ($i = 0; $i $i; $j--){ if($arr[$j] $arr[$j+1]){ $tmp = $arr[$j+1]; $arr[$j+1] = $a... 阅读全文
posted @ 2017-06-24 20:25 龍飛鳯舞 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 服务端验证微信token 阅读全文
posted @ 2017-06-20 09:41 龍飛鳯舞 阅读(489) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2016-12-26 17:27 龍飛鳯舞 阅读(165) 评论(0) 推荐(0) 编辑
摘要: css1: css2: 阅读全文
posted @ 2016-12-16 09:16 龍飛鳯舞 阅读(202) 评论(0) 推荐(0) 编辑
摘要: DOM extend 1 2 3 4 阅读全文
posted @ 2016-12-14 08:58 龍飛鳯舞 阅读(180) 评论(0) 推荐(0) 编辑
摘要: /** * 属性 * childNodes 子节点 * nextSibling 下一个节点 * previousSibling 上一个节点 * parentNode 父节点 * firstChild 第一个子节点 * lastChild 最后一个子节点 * hasChildNodes 判断是否有子节... 阅读全文
posted @ 2016-12-09 09:10 龍飛鳯舞 阅读(145) 评论(0) 推荐(0) 编辑
摘要: var obj = {'a':'a'}; var fun = function (){} console.log(typeof obj);//object console.log(typeof fun);//function var a; console.log(a === undefined);//true console.log(typeof b);//true 未声明的变量使用会报错,但是... 阅读全文
posted @ 2016-11-26 23:06 龍飛鳯舞 阅读(395) 评论(0) 推荐(0) 编辑
摘要: javascript面向对象和php不太一样,语法不太相同,总结如下 阅读全文
posted @ 2016-10-19 14:48 龍飛鳯舞 阅读(127) 评论(0) 推荐(0) 编辑
摘要: cURL基本设置项 利用curl获取网络图片 阅读全文
posted @ 2016-10-10 21:25 龍飛鳯舞 阅读(7074) 评论(1) 推荐(0) 编辑