02 2012 档案
摘要:select res.id, res.title,res.stype,res.urls,decode(res.stype,1,'新闻',decode(res.stype,2,'帮助',decode(res.stype,3,'解决方案',decode(res.stype,4,'产品',decode(res.stype,5,'咨询'))))) as sstype from ( select id,1 as stype, SUBSTR(NEWSTITLE,0,25) as title ,'n_view.aspx?
阅读全文
摘要:Cookie不支持中文。Cookie在客户端使用,使用 base 64 编码,对中文的支持不好。//清除Cooike//取到Request的值var cc = Request.Cookies["Login_User"]; if (cc != null) {//修改过期时间 cc.Expires = DateTime.Now.AddDays(-1);//把Cooike添加到Response中去 Response.Cookies.Add(cc);//跳转到首页 Response.Redirect("~/default.aspx"); }
阅读全文
摘要:function collect() { var ctrl = (navigator.userAgent.toLowerCase()).indexOf('mac') != -1 ? 'Command/Cmd' : 'CTRL'; try { if (document.all) { //IE类浏览器 try { window.external.toString(); //360浏览器不支持window.external,无法收藏 window.alert("国内开发的360浏览器等不支持主动加入收藏。\n您可以尝试通过浏览器菜单栏 或快捷
阅读全文