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
阅读全文
摘要: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
阅读全文
摘要:1、关于页面元素的引用通过jquery的$()引用元素包括通过id、class、元素名以及元素的层级关系及dom或者xpath条件等方法,且返回的对象为jquery对象(集合对象),不能直接调用dom定义的方法。2、jQuery对象与dom对象的转换只有jquery对象才能使用jquery定义的方法。注意dom对象和jquery对象是有区别的,调用方法时要注意操作的是dom对象还是jquery对象。普通的dom对象一般可以通过$()转换成jquery对象。如:$(document.getElementById("msg"))则为jquery对象,可以使用jquery的方法。
阅读全文
摘要: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="
阅读全文

浙公网安备 33010602011771号