摘要: memcache是高性能 ,分布式的内存对象缓存系统,非关系型数据库。 一、增 语法:add key flag expire length key:值的一个名字 flag:一个标志,是一个正整数 expire:有效期 (0:不自动失效) length:缓存的值的长度(单位:字节) 注意: 1. me 阅读全文
posted @ 2018-12-11 20:26 样子2018 阅读(241) 评论(0) 推荐(0)
摘要: using System; using System.Collections.Generic; using System.Drawing; using System.Drawing.Drawing2D; using System.Drawing.Imaging; using System.IO; using System.Linq; using System.Web; namespace We... 阅读全文
posted @ 2018-11-21 17:23 样子2018 阅读(2070) 评论(0) 推荐(0)
摘要: using System; using System.Collections.Generic; using System.Text; using System.Web; namespace Maticsoft.DBUtility { public class CookieHelper { /// /// 设置cookie ///... 阅读全文
posted @ 2018-11-21 17:22 样子2018 阅读(522) 评论(0) 推荐(0)
摘要: 一、mobileSelect获取方法 mobileSelect支持单选、多级联动、自定义回调函数、二次渲染。最新版本下载地址[2017-09-21更新]: https://github.com/onlyhom/mobileSelect.js 二、特性 1、原生js移动端选择控件,不依赖任何库 2、可 阅读全文
posted @ 2018-10-25 17:39 样子2018 阅读(6637) 评论(0) 推荐(0)
摘要: 在一个table中有省,市,县,期,栋,单元,室几个字段,然后用户输入一个地址从表中的字段拼接起来进行模糊查询。 解决办法: 《MySQL权威指南》中CONCAT的使用方法,在书中的对CONCAT的描述是: CONCAT(str1,str2,…)返回值:由全体出入参数合并在一起而得到的字符串。只要输 阅读全文
posted @ 2018-10-25 17:23 样子2018 阅读(7340) 评论(0) 推荐(0)
摘要: 步骤 1、下载安装Redis服务。 2、调用执行文件创建服务器以及测试缓存。 3、使用可视化工具redis-desktop-manager管理查询缓存。 1、下载安装Redis服务。 下载地址:https://github.com/dmajkic/redis/downloads 解压安装包如图: 启 阅读全文
posted @ 2018-10-24 18:57 样子2018 阅读(614) 评论(0) 推荐(0)
摘要: /// /// md5加密字符串 /// /// 需要加密的字符串 /// public static string getMd5String(string str) { //实例化一个md5对像 MD5 md5 = MD5.Cre... 阅读全文
posted @ 2018-10-24 12:31 样子2018 阅读(431) 评论(0) 推荐(0)
摘要: /** * 判断数组中是否包含某个值 * @param arr 数组 * @param str 值 * @returns {boolean} */ function contains(arr, str) { var i = arr.length-1; while (i--) { if (arr[i] 阅读全文
posted @ 2018-10-24 10:27 样子2018 阅读(4153) 评论(0) 推荐(0)
摘要: /** * @Description: * @Author: Yang * @param $the_time 需要转换的时间 * @return string */ function time_tran($the_time) { $show_time = strtotime($the_time); 阅读全文
posted @ 2018-10-24 10:23 样子2018 阅读(2882) 评论(0) 推荐(0)
摘要: 一、html页面如下: 二、引入js文件 三、获取jssdk参数 四、配置js 五、将微信服务器上临时图片保存到本地服务器 阅读全文
posted @ 2018-10-22 20:19 样子2018 阅读(1682) 评论(0) 推荐(0)