摘要: 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 阅读(102) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(111) 评论(0) 推荐(0) 编辑
摘要: "; } //生成目标文件的文件名 else{ $filename=explode(".",$_FILES['file']['name']); do { $filename[0]=random(10); //设置随机数长度 $nam... 阅读全文
posted @ 2015-05-16 16:36 刘阳|lyang|yangakw 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 例如你的原路径是 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 阅读(316) 评论(1) 推荐(0) 编辑
摘要: 一、开启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 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(80) 评论(0) 推荐(0) 编辑
摘要: 快捷键功能 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 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 快排分开写: 阅读全文
posted @ 2014-12-16 16:36 刘阳|lyang|yangakw 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 方法一:$carrymodel = D(“Carry”);$condition["FromAddress"] = array(“like”, “%”.$rname);$condition["ToAddress"] = array(“like”, “%”.$rname);$carryrecord = 阅读全文
posted @ 2014-11-30 20:57 刘阳|lyang|yangakw 阅读(763) 评论(0) 推荐(0) 编辑
摘要: 原文出自开源中国; 阅读全文
posted @ 2014-11-23 12:03 刘阳|lyang|yangakw 阅读(138) 评论(0) 推荐(0) 编辑