摘要: 后端数据分页,高亮显示 public function index() { return view('index'); } public function showList(Request $request) { // 搜索的条件 $search = $request->get('search.va 阅读全文
posted @ 2021-03-16 11:06 SlytherinGirl 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 普通文件上传 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>表单</title> <meta name="viewport" content="width=device-width, initial-sca 阅读全文
posted @ 2021-03-15 14:42 SlytherinGirl 阅读(46) 评论(0) 推荐(0) 编辑
摘要: 登录控制器 1 // 小程序登录 2 public function wxlogin(Request $request) 3 { 4 //获取openid 5 $code = $request->get('code');//点击之后获取到code 6 $appId = "wxc5de25084db9 阅读全文
posted @ 2021-01-29 08:10 SlytherinGirl 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 采集列表 1 <?php 2 require_once "./QueryList.php"; 3 require_once "./phpQuery.php"; 4 // 设定抓取的页数 5 $page = range(1, 3); 6 7 // 分页抓取数据 8 foreach ($page as 阅读全文
posted @ 2021-01-28 21:30 SlytherinGirl 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 前端: 1 <!DOCTYPE html> 2 <html lang="en"> 3 <head> 4 <meta charset="UTF-8"> 5 <title>Title</title> 6 <link rel="stylesheet" type="text/css" href="http: 阅读全文
posted @ 2021-01-24 20:47 SlytherinGirl 阅读(43) 评论(0) 推荐(0) 编辑
摘要: 前端: 1 {{--导入父模板--}} 2 @extends('admin.common.main') 3 {{--替换到content中--}} 4 @section('content') 5 <nav class="breadcrumb"> 6 <i class="Hui-iconfont">& 阅读全文
posted @ 2021-01-17 19:52 SlytherinGirl 阅读(66) 评论(0) 推荐(0) 编辑
摘要: 登录: login.wxml <button open-type="getUserInfo" bindgetuserinfo="user">登录</button> login.js 1 // pages/login/login.js 2 Page({ 3 4 /** 5 * 页面的初始数据 6 */ 阅读全文
posted @ 2020-12-30 13:27 SlytherinGirl 阅读(82) 评论(0) 推荐(0) 编辑
摘要: 控制器: 1 // 获取数据 2 public function index() 3 { 4 $data = Db::table('query')->paginate(5); 5 return json($data); 6 } 7 8 9 // 显示展示页 10 public function sh 阅读全文
posted @ 2020-12-30 09:41 SlytherinGirl 阅读(83) 评论(0) 推荐(0) 编辑
摘要: 1 // 抓取,添加数据 2 public function save(){ 3 require 'QueryList/phpQuery.php'; 4 require 'QueryList/QueryList.php'; 5 // 要抓的网址 6 $url = 'http://www.techwe 阅读全文
posted @ 2020-12-30 08:59 SlytherinGirl 阅读(799) 评论(0) 推荐(0) 编辑