05 2021 档案
摘要:一、效果图 二、代码 wx.getUserProfile({ desc: '用于获取用户个人信息', success: function (detail) { wx.login({ success: ress => { var code = ress.code; //登录凭证 wx.request(
阅读全文
摘要:一、效果图 二、代码 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <titl
阅读全文
摘要:locate:判断字符串(string)中是否包含另一个字符串(subStr) 函数返回subStr在string中出现的位置 一、使用方法 locate(subStr,string) > 0 二、功能类似函数 POSITION(substr IN str) 函数返回字符串中第一次出现的子字符串的位
阅读全文
摘要:一、效果图 二、代码示例 require DT_ROOT . '/api/a/wx.php'; $wx = new wx($db); $wx_small = $db->get_one("select * from {$DT_PRE}wx_small_user where username='{$us
阅读全文
摘要:一、示例 include './plugin/PHPExcel/PHPExcel.php'; include './plugin/PHPExcel/PHPExcel/IOFactory.php'; include './plugin/PHPExcel/PHPExcel/Reader/Excel5.p
阅读全文
摘要:一、示例代码 public function html() { return Response::create($this->fetch('setting'), 'html')->code(200); }
阅读全文