会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
yangakw
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
下一页
2015年8月3日
jquery 解析json
摘要: 1. var str='{ "name": "John" }'; var obj = eval('(' + str + ')'); alert( obj.name); var str2="{ 'name': 'John' }"; var obj2 = eval('(' + ...
阅读全文
posted @ 2015-08-03 12:18 刘阳|lyang|yangakw
阅读(108)
评论(0)
推荐(0)
2015年7月14日
漂亮的 PHP 验证码类
摘要: font = ROOT_PATH.'/font/elephant.ttf'; } //生成随机码 private function createCode() { $_len = strlen($this->charset)-1; for ($i=0;$icodelen;$i++) ...
阅读全文
posted @ 2015-07-14 16:49 刘阳|lyang|yangakw
阅读(116)
评论(0)
推荐(0)
2015年5月16日
php上传文件基础
摘要: "; } //生成目标文件的文件名 else{ $filename=explode(".",$_FILES['file']['name']); do { $filename[0]=random(10); //设置随机数长度 $nam...
阅读全文
posted @ 2015-05-16 16:36 刘阳|lyang|yangakw
阅读(146)
评论(0)
推荐(0)
2015年4月17日
thinkphp 去除入口文件
摘要: 例如你的原路径是 http://localhost/index.php/index/add那么现在的地址是 http://localhost/index/add如何去掉index.php呢? 1.httpd.conf配置文件中加载了mod_rewrite.so模块 //在APACHE里面去配置 #L
阅读全文
posted @ 2015-04-17 15:34 刘阳|lyang|yangakw
阅读(327)
评论(1)
推荐(0)
2015年4月16日
php socket编程
摘要: 一、开启socket phpinfo();查看是否开启了socket扩展,否则在php.ini中开启。 二、服务器端代码的写法 <?php error_reporting(E_ALL); set_time_limit(0); //ob_implicit_flush(); $address = '12
阅读全文
posted @ 2015-04-16 22:58 刘阳|lyang|yangakw
阅读(120)
评论(0)
推荐(0)
2015年4月1日
android用户界面详尽教程实例
摘要: 1.android用户界面之AlarmManager教程实例汇总http://www.apkbus.com/android-48405-1-1.html2.android用户界面之文本编辑教程实例汇总http://www.apkbus.com/android-48414-1-1.html3.andr...
阅读全文
posted @ 2015-04-01 20:08 刘阳|lyang|yangakw
阅读(91)
评论(0)
推荐(0)
sublime 快捷键
摘要: 快捷键功能 ctrl+shift+n 打开新Sublime ctrl+shift+w 关闭Sublime,关闭所有打开文件 ctrl+shift+t 重新打开最近关闭文件 ctrl+n 新建文件 ctrl+s 保存 ctrl+shift+s 另存为 ctrl+f4 关闭文件 ctrl+w 关闭 ct
阅读全文
posted @ 2015-04-01 19:13 刘阳|lyang|yangakw
阅读(114)
评论(0)
推荐(0)
2014年12月16日
快排---快速排序
摘要: 快排分开写:
阅读全文
posted @ 2014-12-16 16:36 刘阳|lyang|yangakw
阅读(147)
评论(0)
推荐(0)
2014年11月30日
thinkphp的like用法
摘要: 方法一:$carrymodel = D(“Carry”);$condition["FromAddress"] = array(“like”, “%”.$rname);$condition["ToAddress"] = array(“like”, “%”.$rname);$carryrecord =
阅读全文
posted @ 2014-11-30 20:57 刘阳|lyang|yangakw
阅读(794)
评论(0)
推荐(0)
2014年11月23日
折半查找
摘要: 原文出自开源中国;
阅读全文
posted @ 2014-11-23 12:03 刘阳|lyang|yangakw
阅读(141)
评论(0)
推荐(0)
上一页
1
2
3
4
5
下一页
公告