上一页 1 2 3 4 5 6 7 8 9 ··· 22 下一页
摘要: chain 链子 1. set nu:显示行号 set nonu :取消行号的显示 2.退出方式: 保存退出:wq 强制不保存退出:q! 退出:q 另存为:w+路径 3. 读入文件 r/opt/install.log //将文件读入到当前文件中 vi 文件 文件 编辑两个文件 Wc命令 (word 阅读全文
posted @ 2019-09-25 10:57 zhangsima 阅读(97) 评论(0) 推荐(0) 编辑
摘要: 用laravel处理上传的文件 1、获取上传的文件 $file=$request->file('file');2、获取上传文件的文件名(带后缀,如abc.png) $filename=$file->getClientOriginalName();3、获取上传文件的后缀(如abc.png,获取到的为p 阅读全文
posted @ 2019-09-02 11:24 zhangsima 阅读(178) 评论(0) 推荐(0) 编辑
摘要: /** * 缩略图上传 */ public static function addPic() { $inputData = request()->all(); $rules = [ 'main_img' => [ 'image','max:10240' ] ]; $validator = Valid 阅读全文
posted @ 2019-08-31 17:41 zhangsima 阅读(373) 评论(0) 推荐(0) 编辑
摘要: 1. composer require intervention/image 2). 修改 app/config/app.php 添加 ServiceProvider: 阅读全文
posted @ 2019-08-22 09:35 zhangsima 阅读(535) 评论(0) 推荐(0) 编辑
摘要: //多维数组排序 protected function sortArrByOneField(&$array,$field,$desc = true){ $fieldArr = array(); foreach ($array as $k => $v) { $fieldArr[$k] = (float 阅读全文
posted @ 2019-08-04 11:22 zhangsima 阅读(305) 评论(0) 推荐(0) 编辑
摘要: as 正当 随着 As we were leaving As I was going It gets warmer and warmer as time goes by As children get older,they will be more interested in the before 阅读全文
posted @ 2019-07-29 10:44 zhangsima 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 七个成分 主语 谓语 宾语 表语 定语 状语 补语 关系副词 where 先行词是地点 this is the city I was born in the city The day when we stop learning is the day when we die . why 先行词为原因 阅读全文
posted @ 2019-07-27 17:58 zhangsima 阅读(142) 评论(0) 推荐(0) 编辑
摘要: {{$data->appends(request()->except(['page']))->links()}} 阅读全文
posted @ 2019-07-20 11:15 zhangsima 阅读(379) 评论(0) 推荐(0) 编辑
摘要: 数组的下标是从0开始的 7 go的数组是值类型 10 长度是数组类型的一部分,在传递函数时,需要考虑数组的长度, 代码 for _,val := range intArr2{ } 数组的反转 随机数 rand.Intn() //为了每次生成的随机数不一样,我们需要给一个seed值 rand.Seed 阅读全文
posted @ 2019-07-17 09:38 zhangsima 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 如果这三个字段中有值为NULL,则返回的也是NULL,那么这一条记录可能就会被错过,使用IFNULL进行判断 阅读全文
posted @ 2019-06-13 08:42 zhangsima 阅读(2218) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 22 下一页