导航

2011年3月29日

摘要: Screen 对象Screen 对象Screen 对象包含有关客户端显示屏幕的信息。注释:没有应用于 screen 对象的公开标准,不过所有浏览器都支持该对象。IE: Internet Explorer, F: Firefox, O: Opera.Screen 对象属性属性描述IEFOavailHeight返回显示屏幕的高度 (除 Windows 任务栏之外)。419availWidth返回显示屏幕的宽度 (除 Windows 任务栏之外)。419bufferDepth设置或返回调色板的比特深度。4NoNocolorDepth返回目标设备或缓冲器上的调色板的比特深度。419deviceXDPI 阅读全文

posted @ 2011-03-29 10:14 yjss 阅读(135) 评论(0) 推荐(0) 编辑

摘要: History 对象History 对象History 对象包含用户(在浏览器窗口中)访问过的 URL。History 对象是 window 对象的一部分,可通过 window.history 属性对其进行访问。注释:没有应用于 History 对象的公开标准,不过所有浏览器都支持该对象。IE: Internet Explorer, F: Firefox, O: Opera.History 对象属性属性描述IEFOlength返回浏览器历史列表中的 URL 数量。419History 对象方法方法描述IEFOback()加载 history 列表中的前一个 URL。419forward()加载 阅读全文

posted @ 2011-03-29 10:11 yjss 阅读(148) 评论(0) 推荐(0) 编辑

摘要: Location 对象Location 对象Location 对象包含有关当前 URL 的信息。Location 对象是 Window 对象的一个部分,可通过 window.location 属性来访问。例子把用户带到一个新的地址IE: Internet Explorer, F: Firefox, O: Opera.Location 对象属性属性描述IEFOhash设置或返回从井号 (#) 开始的 URL(锚)。419host设置或返回主机名和当前 URL 的端口号。419hostname设置或返回当前 URL 的主机名。419href设置或返回完整的 URL。419pathname设置或返回 阅读全文

posted @ 2011-03-29 10:09 yjss 阅读(79) 评论(0) 推荐(0) 编辑

摘要: HTML DOM Document 对象Document 对象每个载入浏览器的 HTML 文档都会成为 Document 对象。Document 对象使我们可以从脚本中对 HTML 页面中的所有元素进行访问。提示:Document 对象是 Window 对象的一部分,可通过 window.document 属性对其进行访问。IE: Internet Explorer, F: Firefox, O: Opera, W3C: W3C 标准.Document 对象集合集合描述IEFOW3Call[]提供对文档中所有 HTML 元素的访问。419Noanchors[]返回对文档中所有 Anchor 对 阅读全文

posted @ 2011-03-29 10:05 yjss 阅读(142) 评论(0) 推荐(0) 编辑

摘要: Window 对象Window 对象表示浏览器中打开的窗口。如果文档包含框架(frame 或 iframe 标签),浏览器会为 HTML 文档创建一个 window 对象,并为每个框架创建一个额外的 window 对象。注释:没有应用于 window 对象的公开标准,不过所有浏览器都支持该对象。IE: Internet Explorer, F: Firefox, O: Opera.Window 对象集合集合描述IEFOframes[]返回窗口中所有命名的框架。该集合是 Window 对象的数组,每个 Window 对象在窗口中含有一个框架或 <iframe>。属性 frames.l 阅读全文

posted @ 2011-03-29 10:00 yjss 阅读(117) 评论(0) 推荐(0) 编辑

摘要: JavaScript Math 对象的参考手册Math 对象Math 对象用于执行数学任务。使用 Math 的属性和方法的语法:var pi_value=Math.PI;var sqrt_value=Math.sqrt(15);注释:Math 对象并不像 Date 和 String 那样是对象的类,因此没有构造函数 Math(),像 Math.sin() 这样的函数只是函数,不是某个对象的方法。您无需创建它,通过把 Math 作为对象使用就可以调用其所有属性和方法。Math 对象属性FF: Firefox, IE: Internet Explorer属性描述FFIEE返回算术常量 e,即自然对 阅读全文

posted @ 2011-03-29 09:08 yjss 阅读(116) 评论(0) 推荐(0) 编辑

摘要: Date 对象Date 对象用于处理日期和时间。创建 Date 对象的语法:var myDate=new Date()注释:Date 对象会自动把当前日期和时间保存为其初始值。Date 对象属性FF: Firefox, IE: Internet Explorer属性描述FFIEconstructor返回对创建此对象的 Date 函数的引用。14prototype使您有能力向对象添加属性和方法。14Date 对象方法FF: Firefox, IE: Internet Explorer方法描述FFIEDate()返回当日的日期和时间。13getDate()从 Date 对象返回一个月中的某一天 ( 阅读全文

posted @ 2011-03-29 09:06 yjss 阅读(128) 评论(0) 推荐(0) 编辑

摘要: <head> <title>Untitled Page</title> <script language="javascript" type="text/javascript">// <![CDATA[ function Button1_onclick() { window.alert("你点了我?"); } function Button2_onclick() { if (window.confirm("你想做什么吗?")) { window.alert(&q 阅读全文

posted @ 2011-03-29 08:57 yjss 阅读(387) 评论(0) 推荐(0) 编辑

摘要: <body><script language="javascript" type="text/javascript"> document.write("<h1>Hello</h1>"); document.write("<h1>Hello</h1>"); document.writeln("<h1>Hello</h1>"); document.writeln("<h1>Hello 阅读全文

posted @ 2011-03-29 08:35 yjss 阅读(176) 评论(0) 推荐(0) 编辑

2011年3月28日

摘要: string url=@"http://gw.api.tbsandbox.com/router/rest", appkey="test", appsecret="test"; string sessionKey = @"252777593fba670770dbbbf2dd69a349ca8f6"; /// <summary> /// 获取在售商品 /// </summary> /// <returns></returns> ItemsOnsaleGetResponse 阅读全文

posted @ 2011-03-28 14:57 yjss 阅读(684) 评论(0) 推荐(0) 编辑

摘要: public static string GetUrlTitle(string url) { try { HttpWebResponse resp = HttpWebRequest.Create(url).GetResponse() as HttpWebResponse; ; using (TextReader tread = new StreamReader(resp.GetResponseStream(), System.Text.ASCIIEncoding.Default)) { string line = tread.ReadToEnd(); int endpoint = line.I 阅读全文

posted @ 2011-03-28 14:49 yjss 阅读(270) 评论(0) 推荐(0) 编辑

摘要: public static bool IsUrl(string url) { return Regex.IsMatch(url, @"^(((file|gopher|news|nntp|telnet|http|ftp|https|ftps|sftp)://)|(www\.))+(([a-zA-Z0-9\._-]+\.[a-zA-Z]{2,6})|([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}))(/[a-zA-Z0-9\&%_\./-~-]*)?$", RegexOptions.IgnoreCase); } 阅读全文

posted @ 2011-03-28 14:47 yjss 阅读(2061) 评论(0) 推荐(0) 编辑

摘要: // ===============================================================================// Microsoft Data Access Application Block for .NET// http://msdn.microsoft.com/library/en-us/dnbda/html/daab-rm.asp//// SQLHelper.cs//// This file contains the implementations of the SqlHelper and SqlHelperParameterCa 阅读全文

posted @ 2011-03-28 14:43 yjss 阅读(361) 评论(0) 推荐(0) 编辑

摘要: 在配置文件的configuration节点下加入 <connectionStrings> <add name="名称" connectionString="Data Source=SQL实例;Initial Catalog=数据库名;User ID=用户名;Password=密码" providerName="System.Data.SqlClient" /> </connectionStrings>在代码中用System.Configuration.ConfigurationManager.Con 阅读全文

posted @ 2011-03-28 14:37 yjss 阅读(1929) 评论(0) 推荐(1) 编辑

2010年12月30日

摘要: 下载链接 阅读全文

posted @ 2010-12-30 09:24 yjss 阅读(140) 评论(0) 推荐(0) 编辑

摘要: 设置代理的类调用方法 阅读全文

posted @ 2010-12-30 09:19 yjss 阅读(608) 评论(0) 推荐(0) 编辑

2010年11月12日

摘要: 示例下载:exe、dll文件图标提取器 阅读全文

posted @ 2010-11-12 11:16 yjss 阅读(3497) 评论(0) 推荐(1) 编辑

2010年6月25日

摘要: 直通线作用:PC网卡接口到普通HUB接口、普通HUB接口到HUB级联接口接法:A、白橙-橙-白绿-蓝-白蓝-绿-白棕-棕 B、同上交叉线作用:PC网卡接口到PC网卡接口、普通HUB接口到普通HUB接口接法:A、白绿-绿-白橙-蓝-白蓝-橙-白棕-棕 B、白橙-橙-白绿-蓝-白蓝-绿-白棕-棕(将“绿”字与“橙”字互换)(1、3、2、6互换) 阅读全文

posted @ 2010-06-25 20:25 yjss 阅读(136) 评论(0) 推荐(0) 编辑