上一页 1 ··· 8 9 10 11 12
摘要: array_unique($arr, SORT_REGULAR); 阅读全文
posted @ 2019-02-13 16:20 酷酷的城池 阅读(172) 评论(0) 推荐(0)
摘要: /** + * 删除目录及目录下所有文件 + * @param str $path 待删除目录路径 + * @param int $deldir 是否删除目录,1或true删除目录,0或false则只删除文件保留目录(包含子目录) + * @return bool 返回删除状态 + */ funct 阅读全文
posted @ 2019-02-13 16:10 酷酷的城池 阅读(363) 评论(0) 推荐(0)
摘要: //方法一:$a ="abc";$b="def";$a = $a^$b;$b = $b^$a;$a = $a^$b;//方法二:list($a, $b)= array($b, $a);//方法三:$a = $a . $b;$b = strlen( $b );$b = substr( $a,0,(st 阅读全文
posted @ 2019-02-13 11:54 酷酷的城池 阅读(312) 评论(0) 推荐(0)
摘要: 放到 ***thinkphp\library\think\paginator\driver\Ajaxbootstrap.php 分页的type参数为ajaxbootstrap <?php// + // | ThinkPHP [ WE CAN DO IT JUST THINK ]// + // | C 阅读全文
posted @ 2019-01-29 14:21 酷酷的城池 阅读(170) 评论(0) 推荐(0)
摘要: <span v-html='lists.html'></span> 阅读全文
posted @ 2019-01-29 11:34 酷酷的城池 阅读(617) 评论(0) 推荐(0)
摘要: caseData = { lists:[] }; vm = new Vue({ el: '.hs-mt', data: caseData }); function getlist(pid,id){ $.ajax({ url: 'xxxxxxxxxxxxxx', type: 'post', dataT 阅读全文
posted @ 2019-01-28 17:11 酷酷的城池 阅读(593) 评论(0) 推荐(0)
摘要: alter user user() identified by '123456' 阅读全文
posted @ 2019-01-22 16:36 酷酷的城池 阅读(186) 评论(0) 推荐(0)
摘要: function numToWord($num) { $chiNum = array('零', '一', '二', '三', '四', '五', '六', '七', '八', '九'); $chiUni = array('','十', '百', '千', '万','十', '百', '千', '亿 阅读全文
posted @ 2019-01-12 16:31 酷酷的城池 阅读(552) 评论(0) 推荐(0)
摘要: $a=[1,2,3,4,5]; $b=[a,b,c,d,e]; 结果 [[1,a],[2,b],[3,c],[4,d],[5,3]] return array_map(function($v1,$v2,$v3,$key) use($id,$content,$type){ return ['type' 阅读全文
posted @ 2019-01-11 10:57 酷酷的城池 阅读(387) 评论(0) 推荐(0)
摘要: array_map(): 1、array_map() 函数将用户自定义函数作用到数组中的每个值上,并返回用户自定义函数作用后的带有新值的数组,若函数作用后无返回值,则对应的新值数组中为空。 2、回调函数接受的参数数目应该和传递给 array_map() 函数的数组数目一致。 3、提示:您可以向函数输 阅读全文
posted @ 2018-12-27 16:24 酷酷的城池 阅读(2210) 评论(1) 推荐(0)
摘要: <?php class Cart { //产品价格 const PRICE_BUTTER = 1.00; const PRICE_MILK = 3.00; const PRICE_EGGS = 6.95; protected $products =array(); public function a 阅读全文
posted @ 2018-12-27 16:21 酷酷的城池 阅读(341) 评论(0) 推荐(0)
摘要: \thinkphp\library\think\paginator\driver 添加 Layui.php <?php namespace think\paginator\driver; use think\Paginator; class Layui extends Paginator { /** 阅读全文
posted @ 2018-12-27 16:20 酷酷的城池 阅读(371) 评论(0) 推荐(0)
摘要: 'taglib_build_in' => 'cx,tags', // 内置标签库名称(标签使用不必指定标签库名称),以逗号分隔 注意解析顺序 <?php namespace think\template\taglib; use think\template\TagLib; class Tags ex 阅读全文
posted @ 2018-12-27 16:19 酷酷的城池 阅读(438) 评论(0) 推荐(0)
摘要: <?php/** *+ * PHP 汉字转拼音 *+ * 使用方法: * $py = new PinYin(); * echo $py->getAllPY("输出汉字所有拼音"); //shuchuhanzisuoyoupinyin * echo $py->getFirstPY("输出汉字首拼音") 阅读全文
posted @ 2018-12-17 09:30 酷酷的城池 阅读(333) 评论(0) 推荐(0)
摘要: <?php//php获取中文字符拼音首字母function getFirstCharter($str){ if(empty($str)) { return ''; } $fchar=ord($str{0}); if($fchar>=ord('A')&&$fchar<=ord('z')) return 阅读全文
posted @ 2018-12-17 09:29 酷酷的城池 阅读(915) 评论(0) 推荐(0)
摘要: 比如: 什么是pyboard? pyboard是官方的MicroPython微控制器板,完全支持软件功能。硬件有: STM32F405RG微控制器 具有硬件浮点的168 MHz Cortex M4 CPU 1024KiB闪存ROM和192KiB RAM Micro USB连接器,用于电源和串行通信 阅读全文
posted @ 2018-12-06 11:17 酷酷的城池 阅读(2231) 评论(0) 推荐(1)
摘要: 原 安装Python mysqlclient出现“OSError: mysql_config not found”错误 2016年06月01日 12:15:11 wangtaoking1 阅读数:11353 标签: pythonmysql 更多 个人分类: Python 原 安装Python mys 阅读全文
posted @ 2018-12-05 13:41 酷酷的城池 阅读(263) 评论(0) 推荐(0)
摘要: 1.对查询进行优化,应尽量避免全表扫描,首先应考虑在 where 及 order by 涉及的列上建立索引。 2.应尽量避免在 where 子句中对字段进行 null 值判断,否则将导致引擎放弃使用索引而进行全表扫描,如:select id from t where num is null可以在nu 阅读全文
posted @ 2018-11-17 09:03 酷酷的城池 阅读(232) 评论(0) 推荐(0)
摘要: <?phpnamespace app;/** * 加密解密类 * 该算法仅支持加密数字。比较适用于数据库中id字段的加密解密,以及根据数字显示url的加密。 * @author 深秋的竹子 * @version alpha * @加密原则 标记长度 + 补位 + 数字替换 * @加密步骤: * 将a 阅读全文
posted @ 2018-11-17 08:56 酷酷的城池 阅读(3591) 评论(0) 推荐(0)
摘要: function makecode(){ $code="ABCDEFGHIGKLMNOPQRSTUVWXYZ"; $rand=$code[rand(0,25)].strtoupper(dechex(date('m'))) .date('d').substr(time(),-5) .substr(mi 阅读全文
posted @ 2018-11-05 10:25 酷酷的城池 阅读(1146) 评论(0) 推荐(0)
摘要: <?php class DB { private $address = 'localhost'; private $username = 'root'; private $password = 'root'; private $db = 'sanbao'; private $table = 'car 阅读全文
posted @ 2018-11-05 10:19 酷酷的城池 阅读(378) 评论(0) 推荐(0)
上一页 1 ··· 8 9 10 11 12