微信小程序简单请求封装缓存时长(单位: 秒)
田螺 发布于 4-19
module.exports={version:"5.0",note:'优化接口调用流程',subDomain:"d88f68675a2d3ad69db409865fafb24d",//如果你的域名是:https://127.0.0.1/abcd那么这里只要填写abcdappid:"wxe1a52dbd6dda26f0",//您的小程序的appi...
阅读(65) 评论(0)
田螺 发布于 4-19
module.exports={version:"5.0",note:'优化接口调用流程',subDomain:"d88f68675a2d3ad69db409865fafb24d",//如果你的域名是:https://127.0.0.1/abcd那么这里只要填写abcdappid:"wxe1a52dbd6dda26f0",//您的小程序的appi...
阅读(65) 评论(0)
田螺 发布于 4-18
调用: $cacheData=serialize(数据);//序列化 $this->cacheWrite($cacheData,'缓存名称');/***写入缓存*/functioncacheWrite($cacheData,$cacheName){$cachefile=EMLOG_RO...
阅读(63) 评论(0)
田螺 发布于 4-18
<?php/**离线下载工具类*============================================================================*/require_once'cls_file_util.php';//文件类require_once'cls_common.php';//基础类classP...
阅读(70) 评论(0)
田螺 发布于 4-18
<?php/**json类*/if(!defined('IN_T')){die('hackingattempt');}classJson{//编码publicfunctionencode($arg,$option=null){if(function_exists('json_encode')){//returnjson_encode($th...
阅读(58) 评论(0)
田螺 发布于 4-18
<?php/**图片裁剪*============================================================================*/classThumbHandler{var$dst_img;//目标文件var$h_src;//图片资源句柄var$h_dst;//新图句柄var$h_mask...
阅读(128) 评论(0)
田螺 发布于 4-18
<?php/***文件工具类*/classFileUtil{/***建立文件夹**@paramstring$aimUrl*@returnviod*/staticfunctioncreateDir($aimUrl){$aimUrl=str_replace('','/',$aimUrl);$aimDir='';$arr=explode('/',...
阅读(70) 评论(0)
田螺 发布于 4-18
<?php/***数据库类*/classMyPDO{protectedstatic$_instance=null;protected$dbName='';protected$dsn;protected$dbh;/***私有化构造方法*@returnMyPDO*/privatefunction__construct($dbHost,$dbUs...
阅读(62) 评论(0)
田螺 发布于 4-18
<?php/**基础类函数*authoryuanjiang@2.16.2013*/if(!defined('IN_T')){die('hackingattempt');}classCommon{/**去除字符串中的非法字符,sql注入等*@param$char:要过滤的字符串*@param$type:字符串类型,string(default...
阅读(71) 评论(0)
田螺 发布于 4-18
captcha.ttf文件在本站的根目录可以直接下载<?php/***生成验证码类*============================================================================*/if(!defined('IN_T')){//die('hackingattempt');}class...
阅读(72) 评论(0)
田螺 发布于 4-18
<?php/****CURL工具**ClassCurl*/if(!defined('IN_T')){die('hackingattempt');}classCurl{privatestatic$_ch;privatestatic$_header;privatestatic$_body;privatestatic$_cookie=array(...
阅读(58) 评论(0)
最新评论
文章不错交个朋友
签到成功!签到时间:2021/4/15 ...
[code]签到成功!签到时间:2021...
@田刚:回复看一下
利用jquery 来实现tag的切换函数...
喜欢 这个博客程序