11 2021 档案

摘要:@media screen and (min-width: 500px) { .main { width: 400px; border: 1px solid #E3E3E3; background: #FFF; } } https://www.runoob.com/cssref/css3-pr-me 阅读全文
posted @ 2021-11-30 12:11 柠七。 阅读(721) 评论(0) 推荐(0)
摘要:原因:Request类引用错误 解决: 把 use Illuminate\Support\Facades\Request; 换成 use Illuminate\Http\Request; 阅读全文
posted @ 2021-11-29 11:23 柠七。 阅读(628) 评论(0) 推荐(0)
摘要:1. 开启 QQ 邮箱smtp,获取授权码: 登录 QQ 邮箱 -> 设置 -> 账户 -> 开启 POP3/SMTP 服务 2.laravel配置 .env 文件 3.控制器代码 引入类 use Illuminate\Support\Facades\Mail; 调用发邮件的方法send(): Ma 阅读全文
posted @ 2021-11-25 17:00 柠七。 阅读(163) 评论(0) 推荐(0)
摘要:在控制器中用到了Validator::make(),它默认是use Dotenv\Validator; 解决办法 把 use Dotenv\Validator; 改为 use Illuminate\Support\Facades\Validator; 阅读全文
posted @ 2021-11-25 15:53 柠七。 阅读(279) 评论(0) 推荐(0)
摘要:表结构如下: CREATE TABLE `goods_category` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) DEFAULT NULL COMMENT '分类名称', `pid` int(5) DEFAULT '0' 阅读全文
posted @ 2021-11-24 18:13 柠七。 阅读(158) 评论(0) 推荐(0)
摘要:使用 Composer create-project 命令安装 composer create-project laravel/laravel blog --prefer-dist 也可以安装指定版本的 Laravel 项目,比如安装 5.6 版本的项目blog11,可以这么做: composer 阅读全文
posted @ 2021-11-23 16:56 柠七。 阅读(140) 评论(0) 推荐(0)
摘要:$(this).addClass('class'):为当前元素添加'class'类(供选择器使用 - - ) $(this).siblings('class'):查找当前元素的所有类名为 "class" 的所有同胞元素,也就是有相同类名的同胞元素。(同胞就是拥有相同的父元素) $(this).rem 阅读全文
posted @ 2021-11-23 11:51 柠七。 阅读(631) 评论(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 柠七。 阅读(95) 评论(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 柠七。 阅读(343) 评论(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 柠七。 阅读(300) 评论(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 柠七。 阅读(89) 评论(0) 推荐(0)
摘要:location.reload() 阅读全文
posted @ 2021-11-22 17:34 柠七。 阅读(31) 评论(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 柠七。 阅读(71) 评论(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 柠七。 阅读(110) 评论(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 柠七。 阅读(195) 评论(0) 推荐(0)
摘要:$('#submit').attr('disabled',true).text('提交中...'); js html 阅读全文
posted @ 2021-11-22 16:11 柠七。 阅读(293) 评论(0) 推荐(0)
摘要:Request::createFromGlobals()->getClientIp(); 阅读全文
posted @ 2021-11-22 16:02 柠七。 阅读(370) 评论(0) 推荐(0)