摘要: 两种方法: 后端的一般处理程序:Imge.ashx 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Web; 5 using System.Web.UI.WebContro 阅读全文
posted @ 2016-02-27 22:05 赛跑的蜗牛 阅读(3562) 评论(0) 推荐(0) 编辑
摘要: 关于url编码,js有三个函数。有三个解码方法,escape,encodeURI,encodeURIComponent()。有三个解码方法,unescapse,decodeURI,decodeURIComponent。1、escape()不能直接用于URL编码,它的真正作用是返回一个字符的Unico 阅读全文
posted @ 2016-02-27 21:33 赛跑的蜗牛 阅读(1466) 评论(0) 推荐(0) 编辑
摘要: 第一步:先引用jQuery的插件jquery-1.9.1.min.js 第二步:引用jquery.cookie.js插件 下对cookie的操作: $.cookie("cookieName", "cookieValue", { expires: 10, //有效日期 以 天 为单位 如果此项未设置则 阅读全文
posted @ 2016-02-27 20:55 赛跑的蜗牛 阅读(343) 评论(0) 推荐(0) 编辑
摘要: 创建cookie: 1 HttpCookie cookie = new HttpCookie("CurrentUser"); //创建一个名称为CurrentUser 的cookie对象 2 cookie.Values.Add("UserId", "1"); //在cookie对象添加 一项键值对 阅读全文
posted @ 2016-02-27 19:32 赛跑的蜗牛 阅读(290) 评论(0) 推荐(0) 编辑