08 2021 档案

摘要:表单页面 //监听行工具事件 table.on('tool(test)', function(obj){ var data = obj.data; //console.log(obj) if(obj.event 'del'){ layer.confirm('真的删除行么', function(ind 阅读全文
posted @ 2021-08-31 21:22 王越666 阅读(376) 评论(0) 推荐(0) 编辑
摘要:创建一个二维数组将该数组处理成以下格式(5分) (原图) (效果图) $subject = [ ['name' => '语文', 'label' => '2'], ['name' => '数学', 'label' => '0'], ['name' => '化学', 'label' => '0'], 阅读全文
posted @ 2021-08-30 13:46 王越666 阅读(68) 评论(0) 推荐(0) 编辑
摘要:<?php//$str='high-school-student-informantion-management-system';// $arr= explode('-',$str);//var_dump($arr);//$student = [ ['name' => '张三', 'c_id' => 阅读全文
posted @ 2021-08-29 21:10 王越666 阅读(37) 评论(0) 推荐(0) 编辑
摘要:<?php function getJsonData($code,$massage,$data){ $result=[ 'code'=>$code, 'massage'=>$massage, 'data'=>!empty($data)?$data:[], ]; return json($result 阅读全文
posted @ 2021-08-29 18:57 王越666 阅读(28) 评论(0) 推荐(0) 编辑
摘要:1:在需要验证的模块名下建一个validate文件夹 ,文件夹下建议个验证的 名称 Goods.php 2:打开Goods.php <?php namespace app\api\validate; use think\Validate; class Goods extends Validate { 阅读全文
posted @ 2021-08-28 17:44 王越666 阅读(131) 评论(0) 推荐(0) 编辑
摘要:1:页面代码 <!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-08-27 21:52 王越666 阅读(39) 评论(0) 推荐(0) 编辑
摘要:下载地址 https://www.layui.com/ 点击实例,找到layui适合模板 2. 新建html将代码复制到对应模板,修改对应样式路径。 5.修改对应参数(url,field) 追加以下参数: ,page: true ,limit:5 ,limits:[3,5,8] <!DOCTYPE 阅读全文
posted @ 2021-08-26 09:48 王越666 阅读(3846) 评论(0) 推荐(0) 编辑
摘要:视图代码: <!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scal 阅读全文
posted @ 2021-08-25 20:01 王越666 阅读(61) 评论(0) 推荐(0) 编辑
摘要:根据博客进行jwt初始化配置 https://blog.csdn.net/weixin_43389208/article/details/117442266?spm=1001.2014.3001.5501 https://www.cnblogs.com/anhan/p/14954953.html 1 阅读全文
posted @ 2021-08-25 14:12 王越666 阅读(84) 评论(0) 推荐(0) 编辑
摘要:你不知道的牛逼网站 仿知网 cn-ki.net/ 仿知网是一个完全可以代替知网的精品网站;是一个非常强大的论文搜索网站。 首先这个网站的论文检索结果和知网的搜索结果基本一样,而且这个网站每个账号前期免费提供论文下载,当你的下载次数没了,你完全可以用其它邮箱再注册其它账号使用;当然,如果你不想再注册账 阅读全文
posted @ 2021-08-24 19:57 王越666 阅读(1054) 评论(0) 推荐(0) 编辑
摘要://视图<form action="/homework/homework/index" method="get"> <input type="text" name="name" placeholder="请根据姓名进行搜索"> <input type="text" name="price" plac 阅读全文
posted @ 2021-08-24 18:27 王越666 阅读(73) 评论(0) 推荐(0) 编辑
摘要:表单展示页面 <!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-sca 阅读全文
posted @ 2021-08-23 21:07 王越666 阅读(20) 评论(0) 推荐(0) 编辑
摘要:*/ public function save(Request $request) { // $params = $request->param(); $file = $request->file('img'); $rule = [ 'account' => 'require|unique:twoe 阅读全文
posted @ 2021-08-23 15:20 王越666 阅读(31) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <link rel="stylesheet" href="http://apps.bdimg.com/libs/bootstrap/ 阅读全文
posted @ 2021-08-23 15:14 王越666 阅读(96) 评论(0) 推荐(0) 编辑
摘要:1、设计数据库表名,字段 2,建立模型 <?php namespace app\login\model; use think\Model; class LoginLon extends Model { // protected $table = 'loginLog'; protected $crea 阅读全文
posted @ 2021-08-21 09:01 王越666 阅读(175) 评论(0) 推荐(0) 编辑
摘要:1、将下载好的字体引入至 thinkPHP 框架的public/static 下(这里我建了一个文件夹叫font) (1.) (2.) 2.将字体路径写入config.php中 'font'=>ROOT_PATH.'/public/static/font/simhei.ttf', 3.(结合上一篇t 阅读全文
posted @ 2021-08-20 21:09 王越666 阅读(102) 评论(0) 推荐(0) 编辑
摘要:路由 use think\Route; //展示添加表单 Route::get('create','user/user/create'); //表单提交数据 Route::post('save','user/user/save'); //展示数据 Route::get('index','user/u 阅读全文
posted @ 2021-08-20 20:30 王越666 阅读(49) 评论(0) 推荐(0) 编辑
摘要:<link rel="stylesheet" href="__STATIC__/layui/css/layui.css" media="all"> <script src="__STATIC__/layui/layui.js"></script> <form class="layui-form" a 阅读全文
posted @ 2021-08-20 09:53 王越666 阅读(361) 评论(0) 推荐(0) 编辑
摘要:方式一:独立验证 // 验证1、独立验证 //验证的规则 $rule = [ 'name' => 'require|max:25', 'username' => 'require', 'password' => 'require', 'email'=>'require' ]; // 验证的错误信息 阅读全文
posted @ 2021-08-18 15:38 王越666 阅读(71) 评论(0) 推荐(0) 编辑
摘要:1.首先在Local创建一个基类控制器 D:\PHP\phpstudy_pro\WWW\1906A\pyg>php think make:controller goods/Base --plain Controller created successfully. 2:判断页面是否有session值, 阅读全文
posted @ 2021-08-18 14:15 王越666 阅读(261) 评论(0) 推荐(0) 编辑
摘要:<label>商品logo:</label> <input type="file" name="img" value=""> 控制器 $params = $request->param(); $path = $request->file('img'); $params['img'] = $path; 阅读全文
posted @ 2021-08-17 21:43 王越666 阅读(64) 评论(0) 推荐(0) 编辑
摘要:<a href="/admin/exam/delete/id/{$v.id}" onclick="if(confirm('确认删除?')) location.href='#'"> 删除 </a> 控制器 public function delete($id) { if (!intval($id)) 阅读全文
posted @ 2021-08-17 21:31 王越666 阅读(43) 评论(0) 推荐(0) 编辑
摘要:<td> {if $v.status==1} <span class="top{$v.id}" name="0" onclick="dian({$v.id})">上架</span> {else} <span class="top{$v.id}" name="1" onclick="dian({$v. 阅读全文
posted @ 2021-08-17 21:26 王越666 阅读(109) 评论(0) 推荐(0) 编辑
摘要:<html> <head> <meta charset="UTF-8" /> <title>Highcharts 教程 | 菜鸟教程(runoob.com)</title> <script src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min 阅读全文
posted @ 2021-08-17 09:43 王越666 阅读(41) 评论(0) 推荐(0) 编辑
摘要:商品的详细描述一般都是图文混合。对于图文混合的内容,需要使用富文本编辑器来实现。 Ueditor富文本编辑器的下载地址: http://ueditor.baidu.com/website/download.html 2、Ueditor编辑器的使用 使用步骤: 引入编辑器的代码到项目中 引入js文件 阅读全文
posted @ 2021-08-16 21:55 王越666 阅读(93) 评论(0) 推荐(0) 编辑
摘要:1、下载 composer require topthink/think-captcha 1.* // composer 下载 //过程 D:\PHP\phpstudy_pro\WWW\1906A\pyg>composer require topthink/think-captcha 1.* ./c 阅读全文
posted @ 2021-08-16 21:37 王越666 阅读(35) 评论(0) 推荐(0) 编辑
摘要:、、、、、、、、、、表单页面 <!DOCTYPE html> {__NOLAYOUT__} <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initia 阅读全文
posted @ 2021-08-16 21:18 王越666 阅读(57) 评论(0) 推荐(0) 编辑
摘要://以对象的形式获取数据库$data变量的信息,将lastPage()传输至页面 $lastpage = $data->lastPage(); $this->assign('lastpage', $lastpage); <select name="page" id="page" > <option 阅读全文
posted @ 2021-08-15 21:15 王越666 阅读(51) 评论(0) 推荐(0) 编辑
摘要:表单页面 <a href="/examtest/test/edit/id/{$v['id']}">修改</a> <a href="/examtest/test/delete/id/{$v['id']}" onclick=" return confirm('您确定要删除吗?')">删除</a> 。。。 阅读全文
posted @ 2021-08-14 21:29 王越666 阅读(47) 评论(0) 推荐(0) 编辑
摘要:表单页面 <a href="/examtest/test/edit/id/{$v['id']}">修改</a> <a href="/examtest/test/delete/id/{$v['id']}" onclick=" return confirm('您确定要删除吗?')">删除</a> 、、、 阅读全文
posted @ 2021-08-14 21:21 王越666 阅读(29) 评论(0) 推荐(0) 编辑
摘要:、、、、、、、、、、控制器方法 public function index() { //接受搜索关键字 $word=input('word'); $where=[]; if (!empty($word)){ $where['title']=['like',"%".$word."%"]; } $dat 阅读全文
posted @ 2021-08-13 22:05 王越666 阅读(58) 评论(0) 推荐(0) 编辑
摘要:、、、、控制器方法返回视图 public function create() { // return view(); } 、、、、、、、、、、、、、、、表单页面 <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title 阅读全文
posted @ 2021-08-13 21:59 王越666 阅读(92) 评论(0) 推荐(0) 编辑
摘要:<?php namespace app\Admin\controller; use think\Controller; use think\Loader; use think\Request; class Login extends Controller { //登录 public function 阅读全文
posted @ 2021-08-13 21:51 王越666 阅读(89) 评论(0) 推荐(0) 编辑
摘要://自高自测登录8.10 Route::get('name/login','nameLoginController@login'); Route::post('/name/logins','nameLoginController@namelogin');/logins','nameLoginCont 阅读全文
posted @ 2021-08-12 13:27 王越666 阅读(76) 评论(0) 推荐(0) 编辑
摘要:参考网址: https://learnku.com/articles/6736/laravel-code-captcha php: composer 安装:composer require mews/captcha 2:注册providers (config/app.php) ,在这个数组中的最后追 阅读全文
posted @ 2021-08-11 09:27 王越666 阅读(272) 评论(0) 推荐(0) 编辑
摘要:一、登录功能1、书写登录路由Route::view('login','login');2、书写登录页面 视图层<form action="{{route('loginDo')}}" method="post"> @csrf <input type="text" placeholder="请输入账号" 阅读全文
posted @ 2021-08-07 20:18 王越666 阅读(320) 评论(0) 推荐(0) 编辑
摘要://登录中间件 Route::group(['middleware'=>'checkage'],function (){ Route::get('/mou/list','MouController@list'); }); //登录展示表单页面的路由 Route::get('/mou/logins', 阅读全文
posted @ 2021-08-07 20:09 王越666 阅读(176) 评论(0) 推荐(0) 编辑
摘要:、、、、、、、、、、、、、、、、、、、、、、、登录界面 <!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-sca 阅读全文
posted @ 2021-08-06 21:36 王越666 阅读(65) 评论(0) 推荐(0) 编辑
摘要:中间件步骤 下载中间件 php artisan make:middleware CheckAge kernel.php 添加创建的中间名称 3创建中间件路由,将列表的路由放入中间件的路由 4、登录时进行session 记录id 5、中间件页面验证session , 如果有记录的session记录的i 阅读全文
posted @ 2021-08-06 10:47 王越666 阅读(137) 评论(0) 推荐(0) 编辑
摘要:专业5 登录+采集+分页+静态化+搜索+预处理登录+伪静态+删除+修改+下拉分页+退出登录 、、、、、登录页面 <!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content=" 阅读全文
posted @ 2021-08-05 22:02 王越666 阅读(72) 评论(0) 推荐(0) 编辑
摘要:public function show(Request $request){ $posts = DB::table('posts') ->join('cate','posts.cate_id','=','cate.c_id') ->get(); $count = count($posts);//获 阅读全文
posted @ 2021-08-05 10:00 王越666 阅读(88) 评论(0) 推荐(0) 编辑
摘要:、、、、、、、、、、、、、、、、、、、、HTML页面<!doctype html><html lang="en"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalabl 阅读全文
posted @ 2021-08-04 21:55 王越666 阅读(80) 评论(0) 推荐(0) 编辑
摘要:、、、、、、、、、、、、、、前端页面通过input框将新老图片传至框架 、、、、、、、、、、、、、、、、、、接受新图片删除老图片 定义和用法 unlink() 函数删除文件。 若成功,则返回 true,失败则返回 false。 语法 unlink(filename,context) 参数描述 fil 阅读全文
posted @ 2021-08-04 15:18 王越666 阅读(129) 评论(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-08-04 11:36 王越666 阅读(76) 评论(0) 推荐(0) 编辑
摘要:路由 Route::get('/list_{id}.html','newsController@listoNewone'); 页面详情 <table class="table"> <tr> <td>新闻的标题</td> <td>新闻的时间</td> <td>新闻的封面</td> </tr> @for 阅读全文
posted @ 2021-08-04 10:48 王越666 阅读(90) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-08-04 10:42 王越666 阅读(65) 评论(0) 推荐(0) 编辑
摘要:<?phpnamespace App\Http\Controllers;use App\models\caijiModel;use Illuminate\Http\Request;use QL\QueryList;use function Sodium\compare;class caijiCont 阅读全文
posted @ 2021-08-04 09:47 王越666 阅读(333) 评论(0) 推荐(0) 编辑
摘要:、、、、、、、、、、、、、、、路由页面 //修改页面的自定义路由Route::post('unigoods/updata','uniGoodsController@updata');//数据恢复Route::get('unigoods/restore/{id}','uniGoodsControlle 阅读全文
posted @ 2021-08-01 21:04 王越666 阅读(133) 评论(0) 推荐(0) 编辑
摘要:<?php $data = array( array( 'id' => 5698, 'first_name' => 'Bill', 'last_name' => 'Gates', ), array( 'id' => 4767, 'first_name' => 'Steve', 'last_name' 阅读全文
posted @ 2021-08-01 20:00 王越666 阅读(23) 评论(0) 推荐(0) 编辑
摘要:、、、、、、、、、、、、、、、、框架控制器 public function list(Request $request){ $word=$request->input('word'); $arr=[]; if (!empty($word)){ $arr['word']=$word; } $data= 阅读全文
posted @ 2021-08-01 08:01 王越666 阅读(37) 评论(0) 推荐(0) 编辑

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