摘要: <?phpnamespace App\Http\Controllers;use Illuminate\Http\Request;class baseController extends Controller{ //公开的静态方法 public static function success($sta 阅读全文
posted @ 2021-07-30 21:27 王越666 阅读(89) 评论(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 阅读(190) 评论(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 阅读(988) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-07-27 09:32 王越666 阅读(20) 评论(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 阅读(166) 评论(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 阅读(38) 评论(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 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 、、、、、、、、、、、、、、、、、删除接口 、、、、、、、、、、、、、、、、、、、、数据恢复接口 、、、、、、、、、、、、、、、模型 ...............................................控制器 。。。。。。。。。。。。。。。。。路由 阅读全文
posted @ 2021-07-24 11:48 王越666 阅读(80) 评论(0) 推荐(0) 编辑