摘要: $t1 = microtime(true); sleep(3); $t2 = microtime(true); echo '程序耗时'.round($t2-$t1,3).'秒'; 阅读全文
posted @ 2018-11-09 17:56 hjr_rong 阅读(331) 评论(0) 推荐(0) 编辑
摘要: 1 阅读全文
posted @ 2018-10-17 17:29 hjr_rong 阅读(1636) 评论(0) 推荐(0) 编辑
摘要: 文件结构: index.php 主页 config 配置文件 doUpdate.php 修改功能页 index.php config.php doUpdate.php 阅读全文
posted @ 2018-10-08 15:30 hjr_rong 阅读(1510) 评论(0) 推荐(0) 编辑
摘要: 实例 执行JavaScript代码或表达式: <script>eval("x=10;y=20;document.write(x*y)");document.write("<br>" + eval("2+2"));document.write("<br>" + eval(x+17));</script 阅读全文
posted @ 2018-07-02 11:03 hjr_rong 阅读(758) 评论(0) 推荐(0) 编辑
摘要: $header = []; $header[] = 'Accept:application/json'; $header[] = 'Content-Type:application/json;charset=utf-8'; $data = $_GPC['mobile']; $ch = curl_init(); curl_setopt($ch, CU... 阅读全文
posted @ 2018-06-15 18:55 hjr_rong 阅读(220) 评论(0) 推荐(0) 编辑
摘要: //jsonp回调 $callback = isset($_GET['callback']) ? trim($_GET['callback']) : ''; //jsonp回调参数,必需 $cgc_kanjia_zhuli_rec = new cgc_kanjia_zhuli_rec(); $recmember = pdo_fetchall("SELECT * FROM " . ... 阅读全文
posted @ 2018-06-15 18:53 hjr_rong 阅读(588) 评论(0) 推荐(0) 编辑
摘要: 1、列表 List接口(继承于Collection接口)及其实现类 List接口及其实现类是容量可变的列表,可按索引访问集合中的元素。 特点:集合中的元素有序、可重复; 列表在数据结构中分别表现为:数组和向量、链表、堆栈、队列。 实现类: ArrayList 实现一个数组,它的规模可变并且能像链表一 阅读全文
posted @ 2018-01-08 11:37 hjr_rong 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 核心文件结构:simplewind--model--lite--model.class.php /controller.class.php Mobile controller: 获取错误信息:$this->apiError()$this->apiSuccess() 获取用户IP:get_client 阅读全文
posted @ 2017-05-24 14:22 hjr_rong 阅读(4629) 评论(0) 推荐(1) 编辑
摘要: <ul> <li><img src="123454"/><img src="123454"/></li> <li><img src="123454"/><img src="123454"/></li> <li><img src="123454"/><img src="123454"/></li> < 阅读全文
posted @ 2017-05-22 18:37 hjr_rong 阅读(315) 评论(0) 推荐(0) 编辑
摘要: mysql 获取当前时间为select now()运行结果: 2012-09-05 17:24:15 mysql 获取当前时间戳为select unix_timestamp(now()) 运行结果:unix_timestamp(now())1346836984 select * from fanwe 阅读全文
posted @ 2017-05-19 11:05 hjr_rong 阅读(6124) 评论(0) 推荐(0) 编辑