摘要: 一种是类级别的插件开发,即给jquery添加新的全局函数,相当于给jquery类本身添加方法。如$.ajax()等,这就是用$.extend()实现 jquery的全局函数就是属于jquery命名空间的函数。另一种是对象级别的插件开发,即给jquery对象添加方法. 如$('#btn1').clic 阅读全文
posted @ 2016-06-22 14:40 zslm___ 阅读(194) 评论(0) 推荐(0) 编辑
摘要: <?xml version="1.0" encoding="UTF-8"?><job-scheduling-data xmlns="http://quartznet.sourceforge.net/JobSchedulingData" xmlns:xsi="http://www.w3.org/200 阅读全文
posted @ 2016-06-22 09:41 zslm___ 阅读(5141) 评论(0) 推荐(0) 编辑
摘要: public class UpLoad { int imgmaxheight = 0; int imgmaxwidth = 0; int thumbnailwidth = 200; int thumbnailheight = 200; int imgsize = 10240; int attachs 阅读全文
posted @ 2016-06-22 00:44 zslm___ 阅读(469) 评论(0) 推荐(0) 编辑
摘要: public class WaterMark { /// <summary> /// 图片水印 /// </summary> /// <param name="imgPath">服务器图片相对路径</param> /// <param name="filename">保存文件名</param> // 阅读全文
posted @ 2016-06-22 00:43 zslm___ 阅读(277) 评论(0) 推荐(0) 编辑
摘要: public class Thumbnail { private Image srcImage; private string srcFileName; /// <summary> /// 创建 /// </summary> /// <param name="FileName">原始图片路径</pa 阅读全文
posted @ 2016-06-22 00:42 zslm___ 阅读(331) 评论(0) 推荐(0) 编辑
摘要: public static class CacheHelper { static Cache _cache = HttpRuntime.Cache; /// <summary> /// 获取缓存 /// </summary> /// <param name="key"></param> /// <r 阅读全文
posted @ 2016-06-22 00:40 zslm___ 阅读(349) 评论(0) 推荐(0) 编辑
摘要: public static class CustomerConfigHelper { public static object _lockObject = new object(); private static string GetCustomConfigValue(string key) { s 阅读全文
posted @ 2016-06-22 00:39 zslm___ 阅读(223) 评论(0) 推荐(0) 编辑
摘要: public static class EnumHelper { /// <summary> /// 枚举转换为字典 /// </summary> /// <typeparam name="T"></typeparam> /// <returns></returns> public static D 阅读全文
posted @ 2016-06-22 00:38 zslm___ 阅读(781) 评论(0) 推荐(0) 编辑
摘要: public static class IpHelper { /// <summary> /// 获取Ip /// </summary> /// <returns></returns> public static string GetIp() { string[] IP_Ary; string st 阅读全文
posted @ 2016-06-22 00:37 zslm___ 阅读(237) 评论(0) 推荐(0) 编辑
摘要: public class LogHelper { private static string _logFielPrefix = string.Empty; private static string LogPath { get { return GetLogPath(@"/log/"); } } / 阅读全文
posted @ 2016-06-22 00:36 zslm___ 阅读(301) 评论(0) 推荐(0) 编辑
摘要: public sealed class TypeHelper { #region Int16 / short public static short ToInt16(object o, short _default) { try { return Convert.ToInt16(o); } catc 阅读全文
posted @ 2016-06-22 00:34 zslm___ 阅读(185) 评论(0) 推荐(0) 编辑
摘要: public class Utils { public static int StrToInt(string str) { return int.Parse(str); } #region MD5加密 public static string MD5(string pwd) { MD5 md5 = 阅读全文
posted @ 2016-06-22 00:32 zslm___ 阅读(385) 评论(0) 推荐(0) 编辑
摘要: 前端: <script src="~/Scripts/swfupload/swfupload.js"></script> <script src="~/Scripts/swfupload/swfupload.queue.js"></script> <script src="~/Scripts/swf 阅读全文
posted @ 2016-06-22 00:30 zslm___ 阅读(532) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Text; namespace taobao{ class EncodingTransfer { static public string UnicodeToGB2312(strin 阅读全文
posted @ 2016-06-22 00:17 zslm___ 阅读(532) 评论(0) 推荐(0) 编辑
摘要: public static string GetGBKEncode(string unicodeString) { Encoding Gbk = Encoding.GetEncoding(936); //创建两个不同的encoding对象 Encoding unicode = Encoding.Un 阅读全文
posted @ 2016-06-22 00:16 zslm___ 阅读(3244) 评论(0) 推荐(0) 编辑
摘要: public static string GetPage(string url, string encoding) { PublicVariables.NetworkConnection = false; int browserTimeout = PublicVariables.BrowserTim 阅读全文
posted @ 2016-06-22 00:12 zslm___ 阅读(639) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections;using System.Globalization;using System.IO;using System.Net;using System.Runtime.InteropServices;using System.Se 阅读全文
posted @ 2016-06-22 00:10 zslm___ 阅读(454) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections;using System.Globalization;using System.IO;using System.Net;using System.Runtime.InteropServices;using System.Se 阅读全文
posted @ 2016-06-22 00:09 zslm___ 阅读(152) 评论(0) 推荐(0) 编辑
摘要: System.Text.RegularExpressions.Regex ___rx = new System.Text.RegularExpressions.Regex(@"""url"":""(?<zip>.*?)""", System.Text.RegularExpressions.Regex 阅读全文
posted @ 2016-06-22 00:07 zslm___ 阅读(141) 评论(0) 推荐(0) 编辑