摘要: 使用 Composer create-project 命令安装 composer create-project laravel/laravel blog --prefer-dist 也可以安装指定版本的 Laravel 项目,比如安装 5.6 版本的项目blog11,可以这么做: composer 阅读全文
posted @ 2021-11-23 16:56 柠七。 阅读(138) 评论(0) 推荐(0)
摘要: $(this).addClass('class'):为当前元素添加'class'类(供选择器使用 - - ) $(this).siblings('class'):查找当前元素的所有类名为 "class" 的所有同胞元素,也就是有相同类名的同胞元素。(同胞就是拥有相同的父元素) $(this).rem 阅读全文
posted @ 2021-11-23 11:51 柠七。 阅读(626) 评论(0) 推荐(0)
摘要: /^[0-9]{1,20}$/ # 字符范围在0-9之间,长度为1-20的规则 /^[a-zA-Z]{1}([a-zA-Z0-9]|[._]){4,19}$/ # 5-20个以字母开头、可带数字、"-"、"."的规则 /^[a-zA-Z]{1,30}$/ # 1-30个以字母开头的规则 /^1(3| 阅读全文
posted @ 2021-11-23 10:46 柠七。 阅读(90) 评论(0) 推荐(0)
摘要: // 用例 public function store (Request $request) { $validator = Validator::make($request->input(),[ 'title' => 'required|unique:posts|max:255', 'body' = 阅读全文
posted @ 2021-11-23 10:02 柠七。 阅读(338) 评论(0) 推荐(0)
摘要: html <label><span style="color:red">* </span>性别</label> <input class="i-checks" type="radio" name="radio" value="1" id="radio1" checked="checked"/> <l 阅读全文
posted @ 2021-11-23 09:58 柠七。 阅读(295) 评论(0) 推荐(0)
摘要: 1.html <div class="content"> <label for="permit_copies" class="file">选择图片 <input id="permit_copies" class="file" type="file" name="permit_copies"> </l 阅读全文
posted @ 2021-11-22 18:10 柠七。 阅读(84) 评论(0) 推荐(0)
摘要: location.reload() 阅读全文
posted @ 2021-11-22 17:34 柠七。 阅读(30) 评论(0) 推荐(0)
摘要: 方法: function contentMatter(value,row,index) { var span=document.createElement("span"); span.setAttribute("title",value); span.innerHTML = value; retur 阅读全文
posted @ 2021-11-22 17:21 柠七。 阅读(68) 评论(0) 推荐(0)
摘要: 单选框 let item = $('input[name=title]:checked').val(); 多选框 let obj = document.dataForm.module; let ids = []; for (let i = 0; i < obj.length; i++) { if ( 阅读全文
posted @ 2021-11-22 17:02 柠七。 阅读(107) 评论(0) 推荐(0)
摘要: //获取IP地址 $ip = Request::createFromGlobals()->getClientIp(); $time_start = date("Y-m-d"); $time_end = date("Y-m-d"); // 获取当天的IP $model = Survey::where( 阅读全文
posted @ 2021-11-22 16:20 柠七。 阅读(190) 评论(0) 推荐(0)