201803-01 Php在二维数组中通过value查找数组元素 PHP提供array_filter函数,通过array_filter可以很方便的在数组中查找value 使用方法: [crayon-67193259e4ad5003503254/] .... Read More >
201803-01 Php中实现二维数组多字段自由排序 本教程实现二维数组,可按任意字段进行升序或降序排列 实现方法比较简单,几行代码搞定! [crayon-67193259e74ba302174411/] 结果: .... Read More >
201803-01 MySqlHelper——Php操作MySql的API 经常使用php操作mysql时,大量输入mysql语句是比较麻烦的 所以可以使用封装的api进行操作mysql,能够提高效率,避免出错 MySqlHelper类 [crayon-67193259e7d63150182339/] 操作测试脚本: [crayon-67193259e7d69670403693/].... Read More >
201802-27 Php接收及返回Get\Post请求 我们的测试环境是WAMP环境,附上环境安装教程WAMP安装教程 一、创建脚本 打开www目录,我的wamp安装在d盘,所以www目录在d:\wamp64\www下(如果系统32位,则为d:\wamp\www) 在该目录下新建test目录,并新建test.php文件 二、测试环境 .... Read More >
201802-26 CentOS将普通的命令加入环境变量 转自:http://blog.csdn.net/lilanfeng1989/article/details/51365855 对于一些自己安装起来的命令一般是在环境变量下寻找不到的,需要将该命令的目录加入到系统的环境变量,下面以php和 mysql的为例子进行讲述一下如何加入到环境变量的步骤: PHP和mysql命令没有加入到环境变量之前,执行“php -v”命令查看当前php版.... Read More >
201802-02 Egret白鹭之WTween缓动动画(简洁、高效、开源) 介绍 这段时间研究了微信小游戏,由于白鹭自身的Tween动画效率较差,就尝试使用第三方库 于是在网上找到了GreenSock库,但不清楚是小游戏不兼容还是别的什么原因,折腾好久也没弄上 最后实在没办法,自己写了个Tween库 摘取网虫虫第一个字母W,于是名字就出来啦 WTween~~ 查看.... Read More >
201712-28 查找资源哪里被引用 转自:http://www.xuanyusong.com/archives/4207 [crayon-67193259e98a7650160732/] .... Read More >
201712-04 Unity使用DoTween实现照片墙效果 前几天帮一个学生实现的照片墙的效果,分享给大家~~ 效果: 脚本: [crayon-67193259ea070484676163/] GitHub下载地址: https://github.com/654306663/PhotoWall.... Read More >
201712-01 Python获取文件名、文件后缀及目录的方法 常用到的一些获取当前文件路径以及父文件路径的方法 [crayon-67193259ea7fd876838097/] .... Read More >
201711-18 PhotonServer(七)使用Protobuf实现二进制数据传输 这篇文章为进阶内容,之前的数据传输机制已经可以很好的适用于大部分项目了。但为了更快、更清晰的传输,这篇我们来拓展学习一下Protobuf数据的传输 介绍 protobuf是google的一个开源项目,可用于以下两种用途: (1)数据的存储(序列化和反序列化),类似于xml、json等; (2.... Read More >