上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 41 下一页
摘要: 1:控制器代码 public function delete($id) { //验证id是否正确 $id if (!intval($id)) { return getJsonData(10010, '参数不正确'); } //删除操作 //检测商品是否存在 $where = [ 'type_id' 阅读全文
posted @ 2021-09-10 20:36 王越666 阅读(61) 评论(0) 推荐(0)
摘要: 1:创建模型 2:定义关联模型 <?php namespace app\common\model; use think\Model; use traits\model\SoftDelete; class TypeModel extends Model { use SoftDelete; //链接py 阅读全文
posted @ 2021-09-10 20:26 王越666 阅读(98) 评论(0) 推荐(0)
摘要: HTML页面 <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title></title> <link rel="stylesheet" type="text/css" href="css/bootstrap.min.css" /> < 阅读全文
posted @ 2021-09-10 11:30 王越666 阅读(175) 评论(0) 推荐(0)
摘要: 模型代码: //会员 public static function member(){ return self::where('status',1)->select(); } 控制器代码: //会员列表 public function member() { $data = UserModel::me 阅读全文
posted @ 2021-09-10 11:05 王越666 阅读(52) 评论(0) 推荐(0)
摘要: 路由: Route::post('imgs','task/task/uploads'); 控制器代码: // 多文件上传 public function uploads() { //接受参数 $data = []; $files = \request()->file('imgs'); foreach 阅读全文
posted @ 2021-09-10 00:13 王越666 阅读(255) 评论(0) 推荐(1)
摘要: 路由: Route::post('upload','task/task/upload'); 控制器代码: //文件上传接口 public function upload() { $file = request()->file('img'); if ($file) { $info = $file->m 阅读全文
posted @ 2021-09-09 23:51 王越666 阅读(195) 评论(0) 推荐(0)
摘要: HTML代码: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <div class="upload-btn"> <input type="file" 阅读全文
posted @ 2021-09-08 21:12 王越666 阅读(60) 评论(0) 推荐(0)
摘要: HTMl代码: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <form action="{:url('imgs/upload')}" method 阅读全文
posted @ 2021-09-06 14:39 王越666 阅读(43) 评论(0) 推荐(0)
摘要: HTML代码:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <link rel="stylesheet" href="http://apps.bdimg.com/libs/boo 阅读全文
posted @ 2021-09-06 11:12 王越666 阅读(126) 评论(0) 推荐(0)
摘要: https://www.sohu.com/a/236178167_505826 1,开始形状/结束形状,“跑道圆”形状代表开始或者结束 2,处理过程,“矩形” 3,判断,“菱形” 4,文件 文件一般是用在输出文件或者写入、修改文件 5,括弧,注释 用于注释流程、条件叙述。 6,平行四边形,数据的输入 阅读全文
posted @ 2021-09-04 08:24 王越666 阅读(1712) 评论(0) 推荐(0)
上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 41 下一页