摘要: 登录: 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 阅读(130) 评论(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 阅读(90) 评论(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 阅读(871) 评论(0) 推荐(0)