摘要: A)location.replace('newurl')B)<body onbeforeunload="window.location.replace('')">C)Response.Cache.SetCacheability(System.Web.HttpCacheability.NoCache)D) <META HTTP-EQUIV="Pragma" CONTENT="no-... 阅读全文
posted @ 2009-01-15 22:04 T#S 阅读(243) 评论(0) 推荐(0)
摘要: 添加 Microsoft.VisualBasic引用/// <summary> /// 转换为简体中文 /// </summary> public static string ToSChinese(string str) { return Strings.StrConv(str, VbStrConv.SimplifiedChinese, 0); } /// <s... 阅读全文
posted @ 2009-01-15 14:39 T#S 阅读(765) 评论(0) 推荐(0)
摘要: 1.Date属性(1):constructor 所建立对象的函数参考prototype 能够为对象加入的属性和方法方法(43):getDay() 返回一周中的第几天(0-6)getYear() 返回年份.2000年以前为2位,2000(包含)以后为4位getFullYear() 返回完整的4位年份数getMonth() 返回月份数(0-11)getDate() 返回日(1-31)getH... 阅读全文
posted @ 2009-01-15 14:24 T#S 阅读(1030) 评论(0) 推荐(0)
摘要: 实现String对象的Trim功能:<SCRIPT LANGUAGE="JavaScript"><!--//出处:网上搜集// Trim() , Ltrim() , RTrim()String.prototype.Trim = function(){return this.replace(/(^\s*)|(\s*$)/g, "");}String.prototype.LTrim ... 阅读全文
posted @ 2009-01-15 14:17 T#S 阅读(367) 评论(0) 推荐(0)