这里是我的空间,是我用来记录点滴的沃土...

05 2011 档案

摘要:public class GetWebEmail { //抓取网页源代码 public static List<string> GetHtmlAndEmail(string url) { //抓取网页内容 string ContentHtml = String.Empty; HttpWebRequest httpWebRequest = null; HttpWebResponse httpWebResponse = null; Stream stream = null; StreamReader sr = null; httpWebRequest = (HttpWebRequest 阅读全文
posted @ 2011-05-06 17:32 wsx2miao 阅读(1164) 评论(0) 推荐(0)
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.IO;using System.Web.Util;using System.Threading;namespace CountApp.App_Code{ public class SysLog { /// <summary> /// 创建文件夹 /// </summary> public static void CreateLogFile() { string filePath = H 阅读全文
posted @ 2011-05-06 16:16 wsx2miao 阅读(2826) 评论(0) 推荐(0)
摘要:1、关于页面元素的引用通过jquery的$()引用元素包括通过id、class、元素名以及元素的层级关系及dom或者xpath条件等方法,且返回的对象为jquery对象(集合对象),不能直接调用dom定义的方法。2、jQuery对象与dom对象的转换只有jquery对象才能使用jquery定义的方法。注意dom对象和jquery对象是有区别的,调用方法时要注意操作的是dom对象还是jquery对象。普通的dom对象一般可以通过$()转换成jquery对象。如:$(document.getElementById("msg"))则为jquery对象,可以使用jquery的方法。 阅读全文
posted @ 2011-05-05 17:36 wsx2miao 阅读(139) 评论(0) 推荐(0)
摘要:1,总是从ID选择器开始继承在jQuery中最快的选择器是ID选择器,因为它直接来自于JavaScript的getElementById()方法。例如有一段HTML代码: <div id="content"> <form method="post" action="#"> <h2>交通信号灯</h2> <ul id="traffic_light"> <li><input type="radio" class=" 阅读全文
posted @ 2011-05-05 17:30 wsx2miao 阅读(134) 评论(0) 推荐(0)

这里是我的空间,是我用来记录点滴的沃土...