07 2021 档案

摘要:<?phpnamespace App\Http\Controllers;use Illuminate\Http\Request;class baseController extends Controller{ //公开的静态方法 public static function success($sta 阅读全文
posted @ 2021-07-30 21:27 王越666 阅读(91) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-07-29 11:32 王越666 阅读(22) 评论(0) 推荐(0) 编辑
摘要:安装querylist 插件 laravel 定时采集: https://zhuanlan.zhihu.com/p/109741054 composer require jaeger/querylist 采集1: //爬虫网站路由 Route::get('/querylist/list','quer 阅读全文
posted @ 2021-07-28 19:42 王越666 阅读(217) 评论(0) 推荐(0) 编辑
摘要:任意二维数组转换成一维数组 1 array_reduce函数法 2 array_walk_recursive函数法 3 array_map函数法 假设有下面一个二维数组: $user = array( '0' => array('id' => 100, 'username' => 'a1'), '1 阅读全文
posted @ 2021-07-28 15:13 王越666 阅读(1022) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-07-27 09:32 王越666 阅读(21) 评论(0) 推荐(0) 编辑
摘要:Jquery Ajax type的4种类型 Ajax type这个里面填什么呢?通常大家都会说get和post。那么还有2个是什么呢 $.ajax({ url: 'http://www.cnblogs.com/youku/', type: '', data: {} }); (默认: "GET") 请 阅读全文
posted @ 2021-07-27 08:51 王越666 阅读(167) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html><html> <head> <meta charset="utf-8"> <title></title> </head> <body> <link rel="stylesheet" type="text/css" href="css/Bootstrap4.css"/> 阅读全文
posted @ 2021-07-24 21:54 王越666 阅读(39) 评论(0) 推荐(0) 编辑
摘要://////////////////////资源路由 //商品资源路由恢复Route::get('/restore/{id}','goodController@restore');//商品资源路由添加,删除 ,展示Route::resource('good','goodController'); / 阅读全文
posted @ 2021-07-24 21:43 王越666 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-07-24 21:11 王越666 阅读(20) 评论(0) 推荐(0) 编辑
摘要:、、、、、、、、、、、、、、、、、删除接口 、、、、、、、、、、、、、、、、、、、、数据恢复接口 、、、、、、、、、、、、、、、模型 ...............................................控制器 。。。。。。。。。。。。。。。。。路由 阅读全文
posted @ 2021-07-24 11:48 王越666 阅读(83) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-07-24 11:06 王越666 阅读(19) 评论(0) 推荐(0) 编辑
摘要:<?php if ($data['status']==1){ ?> <input type="radio" name="status" value="1" checked>正常 <input type="radio" name="status" value="2">异常 <?php }else{ ? 阅读全文
posted @ 2021-07-22 16:55 王越666 阅读(22) 评论(0) 推荐(0) 编辑
摘要:insert into test2(name,gender,age) select name,gender,age from test2; 蠕虫程序复制 (1) 要有初始值 (2) Insert into 表名 (字段1,字段2…) select 字段1,字段2… from 表名 (3) 成2^n复 阅读全文
posted @ 2021-07-22 14:59 王越666 阅读(66) 评论(0) 推荐(0) 编辑
摘要:<?php$link=new PDO('mysql:host=127.0.0.1;charset=utf8;dbname=day4','root','root');$sql="select * from user_name";$PDOStatement=$link->query($sql);$dat 阅读全文
posted @ 2021-07-22 13:40 王越666 阅读(49) 评论(0) 推荐(0) 编辑
摘要:if ($result){ echo '添加成功';// header('refresh:3,url=user_nameList.php'); echo "<script> alert('添加成功');location.href='user_nameList.php'</script>";}else 阅读全文
posted @ 2021-07-21 13:35 王越666 阅读(407) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html><html> <head> <meta charset="utf-8" /> <title></title> <link rel="stylesheet" type="text/css" href="css/Bootstrap4.css" /> </head> <bod 阅读全文
posted @ 2021-07-19 19:52 王越666 阅读(61) 评论(0) 推荐(0) 编辑
摘要:1.1关于数组操作的函数 1.1.1range(start,end) 创建一个数组,值从start开始,一直到end结束 如果range里面的参数是数字,那么他直接按照数字大小的顺序排序,如果里面的参数是一个字符,那么他将按照ascii编码的顺序排序。 1.1.2array_rand() 随机取出一 阅读全文
posted @ 2021-07-18 20:34 王越666 阅读(206) 评论(0) 推荐(0) 编辑
摘要:///////////////////////////////////////////////////路由 //展示表单页面Route::get('/movies/add','moviesController@add');//表单提交页面Route::post('/movies/insert','m 阅读全文
posted @ 2021-07-17 09:18 王越666 阅读(106) 评论(0) 推荐(0) 编辑
摘要:$str=123456789098; echo substr_replace($str,'****',4,4) $str = '15235513256';echo str_replace(3551, '****', $str); 阅读全文
posted @ 2021-07-16 20:41 王越666 阅读(163) 评论(0) 推荐(0) 编辑
摘要:<p><input type="button" value="返回上一级页面" class="btn btn-danger" onclick="back()"><input type="button" value="返回下一级页面" class="btn btn-danger" onclick="g 阅读全文
posted @ 2021-07-16 14:49 王越666 阅读(445) 评论(0) 推荐(0) 编辑
摘要:///////////////////////////////////////资源路由 ///////////////////////////////////////资源控制器 <?phpnamespace App\Http\Controllers;use App\models\testloginM 阅读全文
posted @ 2021-07-09 16:46 王越666 阅读(298) 评论(0) 推荐(0) 编辑
摘要:////////////////////控制器 <?phpnamespace App\Http\Controllers;use App\models\registerModel;// 1 先引入Illuminate\Support\Facades\Validator;use Illuminate\S 阅读全文
posted @ 2021-07-08 21:41 王越666 阅读(44) 评论(0) 推荐(0) 编辑
摘要://////////////////////////////博客系统路由Route::group(['prefix'=>'admin'],function (){ //展示表单添加页面Route::resource('img','imgController');//添加 Route::resourc 阅读全文
posted @ 2021-07-08 09:42 王越666 阅读(48) 评论(0) 推荐(0) 编辑
摘要:public function index(Request $request) { $status = $request->input('status');//接受input里的name值 $title = $request->input('title'); $cate_id = $request- 阅读全文
posted @ 2021-07-07 18:07 王越666 阅读(57) 评论(0) 推荐(0) 编辑
摘要:<?php$a=time();//获取当前的时间戳、echo $a;$b=date('Y-m-d H:i:s');echo $b;//获取当前时间$c=strtotime('2010-02-09');echo $c;//将当前日期转化为时间戳echo "<br>";echo date('Y-m-d 阅读全文
posted @ 2021-07-06 19:18 王越666 阅读(74) 评论(0) 推荐(0) 编辑
摘要://冒泡排序$arr = [1,4,2,67,22,9,16];function maopao($arr){ $len = count($arr);//外部定义轮数 for ($i = 0; $i < $len - 1; $i++) { for ($j = 0; $j < $len - 1 - $i 阅读全文
posted @ 2021-07-03 15:31 王越666 阅读(93) 评论(0) 推荐(0) 编辑
摘要:<!doctype html><html lang="en"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, m 阅读全文
posted @ 2021-07-02 15:48 王越666 阅读(140) 评论(0) 推荐(0) 编辑
摘要://路由页面 //进入表单页面Route::get('/xin/add','xinController@add');//数据根据post请求发送至添加控制器Route::post('/xin/insert','xinController@insert');//数据展示页面Route::get('/x 阅读全文
posted @ 2021-07-01 11:16 王越666 阅读(66) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示