原创 php騰訊地圖 計算距離
一:需要接口 /* * 騰訊地圖計算距離 * $from:起點 * $to : 終點 * $key:key * */ function TX_Map_Api_dis
原创 PHPexcel 導入/導出 方法
(所需PHPExcel類庫自己下) 一、function: function column_str($key) { $array = array('A', 'B', 'C', 'D', 'E', 'F', 'G', 'H'
原创 微擎 點擊 複製 js
1,html <div class="jsclip" data-code="{$member_s['inv_code']}"> 邀請碼: {$member_s['inv_code']}
原创 php 查用戶所有上級/下級
php 查用戶所有上級 function getDataFind($table,$where=[]){ $data = Db::name($table)->where($where)->find();
原创 layUI 圖片預覽
一、 html 代碼 <td> <img class="layui-upload-img" onclick="previewImg(this)" src="{$familyDoctor.logo}" /></td> js 代
原创 tp5 隨機從數據庫取數據方法(不重複)
1.封裝方法 function getRandTable($nums, $tables) { $num = $nums; //需要抽取的默認條數 $table
原创 php 獲取小程序碼 (B類接口)
public function qrcode(){ global $_W; global $_GPC; $url_a ="https://api.weixin.qq.com/cgi-bin/token?grant_type=c
原创 獲取當前月份的前後幾月
//獲取當前月份的前後幾月 function GetMonth($sign) { //得到系統的年月 $tmp_date=date("Ym"); //切割出年份 $tmp_year=sub
原创 小程序:用戶拒絕授權後重新調起授權
直接貼代碼 因爲官方文檔說的 用戶拒絕授權後,短時間無法調起授權,這個短時間也沒說好久,坑~~~ (我這裏是 通訊地址授權) address: function(t) { var e = wx.getStora
原创 大區,省,市 三級聯動
1.建表 DROP TABLE IF EXISTS `t_big_china`; CREATE TABLE `t_big_china` ( `id` int(11) NOT NULL AUTO_INCREMENT, `na
原创 海豚 php上傳視頻方法(引用 layui的js 與css)
1.html代碼 <div class="layui-upload" > <div> <label class="col-xs-12" for="{$form[type].name}" style="margin-left
原创 海豚php上傳音頻方法(引用 layui的 js 與 css)
1.html代碼 <div class="layui-upload" > <div> <label class="col-xs-12" for="{$form[type].name}" style="margin-left
原创 layui下拉多選
1.去layui下載多選插件 插件 原文檔 2.引用 <link rel="stylesheet" href="/static/layui-formSelects-master/dist/formSelects-v4.css" />
原创 php正則表達式
1.中文匹配 /^[\x{4e00}-\x{9fa5}]+$/u
原创 tp5跳外部鏈接
public function vip(){ header('location:https://qun.qq.com/join.html');exit; }