asp.net(C#)数据采集类

2016-12-30 09:57:38来源:oschina作者:深圳大道人点击

using System;
using System.Data;
using System.Collections;
using System.Collections.Generic;
using System.Configuration;
using System.Web;
using MSXML2; //添加引用 COM - Microsoft XML V3.0-V6.0
using System.Text.RegularExpressions;
namespace EC
{
///
/// 远程文件抓取类
///

public class GetRemoteObj
{
#region 构造与析构函数
public GetRemoteObj()
{
//
// TODO: 在此处添加构造函数逻辑
//
}
~GetRemoteObj()
{
Dispose();
}
#endregion
#region IDisposable 成员
public void Dispose()
{
GC.SuppressFinalize(this);
}
#endregion
#region 取得文件后缀
///
/// 取得文件后缀
///

/// 文件名称
///
public string GetFileExtends(string filename)
{
string ext = null;
if (filename.IndexOf('.') > 0)
{
string[] fs = filename.Split('.');
ext = fs[fs.Length - 1];
}
return ext;
}
#endregion
#region 获取远程文件源代码
/**********************************
* 函数名称:GetRemoteHtmlCode
* 功能说明:获取远程文件源代码
* 参数:Url:远程url
* 调用示例:
* GetRemoteObj o = new GetRemoteObj();
* string url = @"http://www.baidu.com";
* string s = o.GetRemoteHtmlCode(url);
* Response.Write(s);
* o.Dispose();
* ********************************/
///
/// 获取远程文件源代码
///

/// 远程url
///
public string GetRemoteHtmlCode(string Url)
{
string s = "";
MSXML2.XMLHTTP _xmlhttp = new MSXML2.XMLHTTP();
_xmlhttp.open("GET", Url, false, null, null);
_xmlhttp.send("");
if (_xmlhttp.readyState == 4)
{
s = System.Text.Encoding.Default.GetString((byte[])_xmlhttp.responseBody);
}
return s;
}
#endregion
#region 保存远程文件
/**********************************
* 函数名称:RemoteSave
* 功能说明:保存远程文件
* 参数:Url:远程url;Path:保存到的路径
* 调用示例:
* GetRemoteObj o = new GetRemoteObj();
* string s = "";
* string url = @"/2014th7cj/d/file/p/20161230/z2zs21ctyup.gif";
* string path =Server.MapPath("Html/");
* s = o.RemoteSave(url,path);
* Response.Write(s);
* o.Dispose();
* ******************************/
///
/// 保存远程文件
///

/// 远程url
/// 保存到的路径
///
public string RemoteSave(string Url, string Path)
{
Random ra = new Random();
string StringFileName = DateTime.Now.ToString("yyyyMMddHHmmssffff") + "." + GetFileExtends(Url);
string StringFilePath = Path + StringFileName;
MSXML2.XMLHTTP _xmlhttp = new MSXML2.XMLHTTP();
_xmlhttp.open("GET", Url, false, null, null);
_xmlhttp.send("");
if (_xmlhttp.readyState == 4)
{
if (System.IO.File.Exists(StringFilePath))
System.IO.File.Delete(StringFilePath);
System.IO.FileStream fs = new System.IO.FileStream(StringFilePath, System.IO.FileMode.CreateNew);
System.IO.BinaryWriter w = new System.IO.BinaryWriter(fs);
w.Write((byte[])_xmlhttp.responseBody);
w.Close();
fs.Close();
}
else
throw new Exception(_xmlhttp.statusText);
return StringFileName;
}
#endregion
#region 替换网页中的换行和引号
///
/// 替换网页中的换行和引号
///

/// HTML源代码
///
public string ReplaceEnter(string HtmlCode)
{
string s = "";
if (HtmlCode == null || HtmlCode == "")
s = "";
else
s = HtmlCode.Replace("/"", "");
s = s.Replace("/r/n", "");
return s;
}
#endregion
#region 替换HTML标签
///
/// 替换HTML标签
///

/// html源代码
///
public string RemoveHTML(string HtmlCode)
{
string MatchVale = HtmlCode;
foreach (Match s in Regex.Matches(HtmlCode, "<.+?>"))
{
MatchVale = MatchVale.Replace(s.Value, "");
}
return MatchVale;
}
#endregion
#region 匹配页面的链接
///
/// 获取页面的链接正则
///

///
///
public List GetHref(string HtmlCode)
{
List list = new List();
string Reg = @"(h|H)(r|R)(e|E)(f|F) *= *('|"")?((/w|//|//|/.|:|-|_)+)('|""| *|>)?";
foreach (Match m in Regex.Matches(HtmlCode, Reg))
{
list.Add((m.Value).ToLower().Replace("href=", "").Trim());
}
return list;
}
#endregion
#region 匹配页面的图片地址
///
/// 匹配页面的图片地址
///

///
/// 要补充的http://路径信息
///
public string GetImgSrc(string HtmlCode, string imgHttp)
{
string MatchVale = "";
string Reg = @"";
foreach (Match m in Regex.Matches(HtmlCode, Reg))
{
MatchVale += GetImg((m.Value).ToLower().Trim(), imgHttp) + "||";
}
return MatchVale;
}
///
/// 匹配中的图片路径实际链接
///

/// 字符串
///
public string GetImg(string ImgString, string imgHttp)
{
string MatchVale = "";
string Reg = @"src=.+/.(bmp|jpg|gif|png|)";
foreach (Match m in Regex.Matches(ImgString.ToLower(), Reg))
{
MatchVale += (m.Value).ToLower().Trim().Replace("src=", "");
}
return (imgHttp + MatchVale);
}
#endregion
#region 获得指定Html代码中所有超级连接的标题和连接地址
///
/// 获得指定Html代码中所有超级连接的标题和连接地址:测试有效 反回Dictionary key-标题value-地址
///

/// 需要匹配出超级连接的HTML代码
///
public Dictionary GetCodeHref(string HtmlCode)
{
Dictionary dic = new Dictionary();
//匹配指定HTML代码中所有的超级连接中的href 和超连接文字内容的正则 有时候需要根据实际情况做小调整如果标题中间有文字的话
string regex = @"/[^""]*)""|'(?[^']*)'|(?[^/>^/s]+)).*/>(?[^/<^/>]*)/<[^/</a/>]*/a/>";<br> Regex reg1 = new Regex(regex, RegexOptions.IgnoreCase);//创建正则表达式对象 <br> MatchCollection ms1 = reg1.Matches(HtmlCode);//根据正则表达式匹配出所有匹配项返匹配集合 <br> foreach (Match m1 in ms1)//迭代集合获得每个匹配项 <br> {<br>dic.Add(m1.Groups["title"].Value, m1.Groups["url"].Value);<br> }<br> return dic;<br> }<br> #endregion<br> #region 正则获得字符串中开始和结束字符串之间的值<br> /// <summary><br> /// 正则获得字符串中开始和结束字符串之间的值<br> /// </summary><br> /// <param name="str">字符串</param><br> /// <param name="s">开始</param><br> /// <param name="e">结束</param><br> /// <returns></returns> <br> public string GetRegValue(string str, string s, string e)<br> {<br> Regex rg = new Regex("(?<=(" + s + "))[.//s//S]*?(?=(" + e + "))", RegexOptions.Multiline | RegexOptions.Singleline);<br> return rg.Match(str).Value;<br> }<br> /// <summary><br> /// 正则获得字符串中开始和结束字符串之间的值<br> /// </summary><br> /// <param name="str">字符串</param><br> /// <param name="s">开始</param><br> /// <param name="e">结束</param><br> /// <returns></returns><br> public List<string> GetRegValueArr(string str, string s, string e)<br> {<br> Match m;<br> List<string> list = new List<string>();<br> Regex rg = new Regex("(?<=(" + s + "))[.//s//S]*?(?=(" + e + "))", RegexOptions.Multiline | RegexOptions.Singleline);<br> for (m = rg.Match(str); m.Success; m = m.NextMatch())<br> {<br>list.Add(m.Groups[0].Value);<br> }<br> return list;<br> }<br> #endregion<br> #region 替换通过正则获取字符串所带的正则首尾匹配字符串<br> public string RegReplace(string RegValue, string regStart, string regEnd)<br> {<br> string s = RegValue;<br> if (RegValue != "" && RegValue != null)<br> {<br>if (regStart != "" && regStart != null)<br>{<br>s = s.Replace(regStart, "");<br>}<br>if (regEnd != "" && regEnd != null)<br>{<br>s = s.Replace(regEnd, "");<br>}<br> }<br> return s;<br> }<br> #endregion<br>}<br>}<!--七城--> </div> <div class="pagebreak pageBar tc mtb20"></div> <div class="mtb20 bgf"> <script> (function() { var s = "_" + Math.random().toString(36).slice(2); document.write('<div id="' + s + '"></div>'); (window.slotbydup=window.slotbydup || []).push({ id: '1119915', container: s, size: '668,100', display: 'inlay-fix' }); })(); </script></div> <div class="mb20 newsBarLayout bgf"> <ul class="post-taglist clearfix mb5"><li class="tagh">热点聚合:<a href="http://www.th7.cn/e/tags/?tagname=C%23" target="_blank">C#</a> <a href="http://www.th7.cn/e/tags/?tagname=%E6%95%B0%E6%8D%AE%E9%87%87%E9%9B%86" target="_blank">数据采集</a> <a href="http://www.th7.cn/e/tags/?tagname=net" target="_blank">net</a> <a href="http://www.th7.cn/e/tags/?tagname=asp" target="_blank">asp</a></li></ul> </div> <div class="mb20 newsBarLayout bgf" id="xgxw"> <h3>相关文章</h3> <ul class="xgxwlist"> <li><a href="http://www.th7.cn/Program/net/201612/1061579.shtml" title="C# 用SoapUI调试WCF服务接口(WCF中包含用户名密码的验证)">C# 用SoapUI调试WCF服务接口(WCF中包含用户名密码的验</a></li><li><a href="http://www.th7.cn/Program/net/201612/1061578.shtml" title="C#发送邮箱">C#发送邮箱</a></li><li><a href="http://www.th7.cn/Program/net/201612/1060975.shtml" title="用"hosting.json"配置ASP.NET Core站点的Hosting环境">用"hosting.json"配置ASP.NET Core站点的Hosting环境</a></li><li><a href="http://www.th7.cn/Program/net/201612/1060973.shtml" title="用C#开发一个WinForm版的批量图片压缩工具">用C#开发一个WinForm版的批量图片压缩工具</a></li><li><a href="http://www.th7.cn/Program/net/201612/1060967.shtml" title="asp.net读取Xml文件到DataSet,以及DataSet保存为Xml,利用自带的强大功能">asp.net读取Xml文件到DataSet,以及DataSet保存为Xml,利</a></li><li><a href="http://www.th7.cn/Program/net/201612/1060963.shtml" title="asp.net上传execl文件后,在页面上加载显示。">asp.net上传execl文件后,在页面上加载显示。</a></li><li><a href="http://www.th7.cn/Program/net/201612/1060960.shtml" title="asp.net 实现进度条 用来显示加载进度或程序处理进度">asp.net 实现进度条 用来显示加载进度或程序处理进度</a></li><li><a href="http://www.th7.cn/Program/net/201612/1060958.shtml" title="Asp.net页面生存周期">Asp.net页面生存周期</a></li><li><a href="http://www.th7.cn/Program/net/201612/1060955.shtml" title="asp.net导出数据到execl并保存到本地 不需要调用Office组件">asp.net导出数据到execl并保存到本地 不需要调用Offic</a></li><li><a href="http://www.th7.cn/Program/net/201612/1060953.shtml" title="利用asp.net自带邮件组件 发送邮件,支持126,163,gmail,qq等邮箱">利用asp.net自带邮件组件 发送邮件,支持126,163,gmail,</a></li></ul> </div> </div> <div class="mt20 bgf"> <div id="hm_t_70118"></div> </div> <div class="newsBarLayout mt20 bgf"> <div class="ds-thread" data-thread-key="51060970" data-title="asp.net(C#)数据采集类" data-url="http://www.th7.cn/Program/net/201612/1060970.shtml"></div> </div> </div> <div class="newsBarLayout mt20 bgf"> <h3>最新文章</h3> <div class="slideImgList"> <div class="numberState"><span class="current">1</span><span>2</span><span>3</span> </div> <div class="imgListLayout"> <ul class="imgList clearfix"> <li> <p><a title="iOS初级教程(一)" href="http://www.th7.cn/Program/IOS/201701/1085739.shtml" target="_blank">iOS初级教程(一)</a></p> <p><a title="限定UITextField输入的字节长度" href="http://www.th7.cn/Program/IOS/201701/1085737.shtml" target="_blank">限定UITextField输入的字节</a></p> <p><a title="动画分析步骤“三步曲”" href="http://www.th7.cn/Program/IOS/201701/1085736.shtml" target="_blank">动画分析步骤“三步曲”</a></p> <p><a title="在mac上编译lame" href="http://www.th7.cn/Program/IOS/201701/1085734.shtml" target="_blank">在mac上编译lame</a></p> <p><a title="iOS------教你如何APP怎么加急审核" href="http://www.th7.cn/Program/IOS/201701/1085731.shtml" target="_blank">iOS------教你如何APP怎么加</a></p> <p><a title="【Java成长之路】--Struts2使用详解" href="http://www.th7.cn/Program/java/201701/1085726.shtml" target="_blank">【Java成长之路】--Struts2</a></p> <p><a title="蒙特卡洛算法计算炉石传说竞技场胜率" href="http://www.th7.cn/Program/java/201701/1085725.shtml" target="_blank">蒙特卡洛算法计算炉石传说竞</a></p> </li> <li> <p><a title="Photoshop把明星童年照转为漂亮的仿手绘效果" href="http://www.th7.cn/pm/Photoshop/201701/84354.shtml" target="_blank">Photoshop把明星童年照转为</a></p> <p><a title="Photoshop制作梦幻的金色福字" href="http://www.th7.cn/pm/Photoshop/201701/84353.shtml" target="_blank">Photoshop制作梦幻的金色福</a></p> <p><a title="Photoshop合成阴冷的小巷雨夜场景" href="http://www.th7.cn/pm/Photoshop/201701/84352.shtml" target="_blank">Photoshop合成阴冷的小巷雨</a></p> <p><a title="Photoshop给树林人物加上梦幻的暗调蓝灰色" href="http://www.th7.cn/pm/Photoshop/201701/84351.shtml" target="_blank">Photoshop给树林人物加上梦</a></p> <p><a title="Photoshop制作在水中漂浮的3D立体字" href="http://www.th7.cn/pm/Photoshop/201701/84350.shtml" target="_blank">Photoshop制作在水中漂浮的3</a></p> <p><a title="Photoshop给外景婚纱照片添加夕阳黄昏效果" href="http://www.th7.cn/pm/Photoshop/201701/84349.shtml" target="_blank">Photoshop给外景婚纱照片添</a></p> <p><a title="Photoshop给人像照片后期精修磨皮处理" href="http://www.th7.cn/pm/Photoshop/201701/84348.shtml" target="_blank">Photoshop给人像照片后期精</a></p> </li> <li> <p><a title="easyui 分页表格插件带搜索" href="http://www.th7.cn/web/html-css/201701/209804.shtml" target="_blank">easyui 分页表格插件带搜索</a></p> <p><a title="2——get the encoding of the html" href="http://www.th7.cn/web/html-css/201701/209803.shtml" target="_blank">2——get the encoding of t</a></p> <p><a title="bootstrap——css样式(一、栅格系统)" href="http://www.th7.cn/web/html-css/201701/209802.shtml" target="_blank">bootstrap——css样式(一、栅</a></p> <p><a title="bootstrap——css样式(二、排版)" href="http://www.th7.cn/web/html-css/201701/209801.shtml" target="_blank">bootstrap——css样式(二、排</a></p> <p><a title="JavaScript中加号运算符"+" 运算过程理解" href="http://www.th7.cn/web/js/201701/209800.shtml" target="_blank">JavaScript中加号运算符"+" </a></p> <p><a title="20个正则表达式,让你少写1000行代码" href="http://www.th7.cn/web/js/201701/209799.shtml" target="_blank">20个正则表达式,让你少写1000</a></p> <p><a title="js学习笔记(二)" href="http://www.th7.cn/web/js/201701/209798.shtml" target="_blank">js学习笔记(二)</a></p> </li> <li> <p><a title="HOFFEN品牌视觉形象设计" href="http://www.th7.cn/Design/vi/201701/837454.shtml" target="_blank">HOFFEN品牌视觉形象设计</a></p> <p><a title="墨西哥EFIEM经济菜视觉形象设计" href="http://www.th7.cn/Design/vi/201701/837453.shtml" target="_blank">墨西哥EFIEM经济菜视觉形象</a></p> <p><a title="28幅精彩的插画设计作品" href="http://www.th7.cn/Design/pic/201701/837451.shtml" target="_blank">28幅精彩的插画设计作品</a></p> <p><a title="60个多彩的网页设计" href="http://www.th7.cn/Design/web/201701/837450.shtml" target="_blank">60个多彩的网页设计</a></p> <p><a title="轩尼诗演唱会视觉设计" href="http://www.th7.cn/Design/vi/201701/837449.shtml" target="_blank">轩尼诗演唱会视觉设计</a></p> <p><a title="来自家乡的红包设计" href="http://www.th7.cn/Design/pm/201701/837446.shtml" target="_blank">来自家乡的红包设计</a></p> <p><a title="星尘" href="http://www.th7.cn/Design/pic/201701/837431.shtml" target="_blank">星尘</a></p> </li> <li> <p><a title="腾讯云ubuntu部署JavaWeb具体步骤" href="http://www.th7.cn/system/lin/201701/199684.shtml" target="_blank">腾讯云ubuntu部署JavaWeb具</a></p> <p><a title="Ubuntu16.04破解 MyEclipse" href="http://www.th7.cn/system/lin/201701/199683.shtml" target="_blank">Ubuntu16.04破解 MyEclipse</a></p> <p><a title="安装ubuntu CUDA" href="http://www.th7.cn/system/lin/201701/199682.shtml" target="_blank">安装ubuntu CUDA</a></p> <p><a title="解决ubuntu的软件源找不到软件包的问题" href="http://www.th7.cn/system/lin/201701/199681.shtml" target="_blank">解决ubuntu的软件源找不到软</a></p> <p><a title="Ubuntu 16.04 安装网易云音乐" href="http://www.th7.cn/system/lin/201701/199680.shtml" target="_blank">Ubuntu 16.04 安装网易云音</a></p> <p><a title="在阿里云服务器上快速搭建JavaWeb环境(安装JDK、Tomcat、MySQL)+Intellij IDEA远程部署调试tomcat" href="http://www.th7.cn/system/lin/201701/199679.shtml" target="_blank">在阿里云服务器上快速搭建Ja</a></p> <p><a title="【Linux Socket 编程入门】03 - 关于IP,Subnet,Port你应该知道的那些事儿" href="http://www.th7.cn/system/lin/201701/199678.shtml" target="_blank">【Linux Socket 编程入门】0</a></p> </li> <li> <p><a title="office2013闪退怎么办?" href="http://www.th7.cn/office/word/201701/56776.shtml" target="_blank">office2013闪退怎么办?</a></p> <p><a title="怎么做出好看的PPT?" href="http://www.th7.cn/office/ppt/201701/56775.shtml" target="_blank">怎么做出好看的PPT?</a></p> <p><a title="PPT怎么插入幻灯片编号?" href="http://www.th7.cn/office/ppt/201701/56774.shtml" target="_blank">PPT怎么插入幻灯片编号?</a></p> <p><a title="ppt怎么添加背景图片" href="http://www.th7.cn/office/ppt/201701/56773.shtml" target="_blank">ppt怎么添加背景图片</a></p> <p><a title="PPT如何制作动画" href="http://www.th7.cn/office/ppt/201701/56772.shtml" target="_blank">PPT如何制作动画</a></p> <p><a title="PPT怎么制作小数乘整数例题的动画?" href="http://www.th7.cn/office/ppt/201701/56771.shtml" target="_blank">PPT怎么制作小数乘整数例题</a></p> <p><a title="Excel中进行怎么插入日期选择器" href="http://www.th7.cn/office/excel/201701/56770.shtml" target="_blank">Excel中进行怎么插入日期选</a></p> </li> <li> <p><a title="Redis---key操作" href="http://www.th7.cn/db/nosql/201701/223732.shtml" target="_blank">Redis---key操作</a></p> <p><a title="Invalid property 'maxActive' of bean class [redis.clients.jedis.JedisPoolConfig]" href="http://www.th7.cn/db/nosql/201701/223731.shtml" target="_blank">Invalid property &#39;maxA</a></p> <p><a title="封装的RedisUtil工具类" href="http://www.th7.cn/db/nosql/201701/223730.shtml" target="_blank">封装的RedisUtil工具类</a></p> <p><a title="redis的分布式锁" href="http://www.th7.cn/db/nosql/201701/223729.shtml" target="_blank">redis的分布式锁</a></p> <p><a title="spring+redis ip不能为127.0.0.1" href="http://www.th7.cn/db/nosql/201701/223728.shtml" target="_blank">spring+redis ip不能为127.0</a></p> <p><a title="tomcat+nginx+redis实现均衡负载、session共享(一)" href="http://www.th7.cn/db/nosql/201701/223727.shtml" target="_blank">tomcat+nginx+redis实现均衡</a></p> <p><a title="tomcat+nginx+redis实现均衡负载、session共享(二)" href="http://www.th7.cn/db/nosql/201701/223726.shtml" target="_blank">tomcat+nginx+redis实现均衡</a></p> </li> <li> <p><a title="不辜负自己的 才是人生啊" href="http://www.th7.cn/fzl/pic/201701/138580.shtml" target="_blank">不辜负自己的 才是人生啊</a></p> <p><a title="我今天只做了两件事,呼吸和想你!" href="http://www.th7.cn/fzl/pic/201701/138579.shtml" target="_blank">我今天只做了两件事,呼吸和想</a></p> <p><a title="热闹给需要的人就好,我并不需要。" href="http://www.th7.cn/fzl/pic/201701/138578.shtml" target="_blank">热闹给需要的人就好,我并不需</a></p> <p><a title="我愿先颠沛流离,再遇见一个温暖的你" href="http://www.th7.cn/fzl/pic/201701/138577.shtml" target="_blank">我愿先颠沛流离,再遇见一个温</a></p> <p><a title="在最没有能力的年纪,碰上了想要照顾一生的人" href="http://www.th7.cn/fzl/pic/201701/138576.shtml" target="_blank">在最没有能力的年纪,碰上了想</a></p> <p><a title="在伤口上撒盐,除了残忍还能让人清醒" href="http://www.th7.cn/fzl/pic/201701/138575.shtml" target="_blank">在伤口上撒盐,除了残忍还能</a></p> <p><a title="校园情侣纯纯的爱" href="http://www.th7.cn/fzl/pic/201701/138574.shtml" target="_blank">校园情侣纯纯的爱</a></p> </li> <li> <p><a title="犹如野火燎原般的卡牌战斗手游 《无双三国志》评测" href="http://www.th7.cn/game/ios/201701/319715.shtml" target="_blank">犹如野火燎原般的卡牌战斗手</a></p> <p><a title="和妹子双修才是修仙的最终目的 《幻剑仙侠》评测" href="http://www.th7.cn/game/ios/201701/319714.shtml" target="_blank">和妹子双修才是修仙的最终目</a></p> <p><a title="美人,只配王者拥有 《王者修仙传奇》评测" href="http://www.th7.cn/game/ios/201701/319713.shtml" target="_blank">美人,只配王者拥有 《王者修</a></p> <p><a title="最后的守护者!《永不孤单》评测" href="http://www.th7.cn/game/ios/201701/319712.shtml" target="_blank">最后的守护者!《永不孤单》评</a></p> <p><a title="阴阳轮回 生生不息 《太极迷阵》评测" href="http://www.th7.cn/game/ios/201701/319711.shtml" target="_blank">阴阳轮回 生生不息 《太极迷</a></p> <p><a title="《开心餐馆》简评:过年吃啥你说了算" href="http://www.th7.cn/game/ios/201701/319710.shtml" target="_blank">《开心餐馆》简评:过年吃啥你</a></p> <p><a title="梦幻诛仙手游吸血妖人技能及培养攻略" href="http://www.th7.cn/game/ios/201701/319709.shtml" target="_blank">梦幻诛仙手游吸血妖人技能及</a></p> </li> </ul> </div> </div> </div> <script type="text/javascript"> var cpro_id = "u2861938"; </script> <script type="text/javascript" src="http://cpro.baidustatic.com/cpro/ui/i.js"></script> <div class="newsBarLayout mt20 bgf" style="border:0px;"></div> </div> <div class="w300 fr"> <div> <script type="text/javascript">var cpro_id = "u654799";</script> <script src="http://cpro.baidustatic.com/cpro/ui/c.js" type="text/javascript"></script> </div> <div class="tabTitleBar mt20 bgf borderTred"> <div class="borderTnonee pb10"> <h3 class="titleMain2 titleMain-b red"><span class="txt pl10">本站导航</span></h3> <h2><a href="/pm/">平面设计</a></h2> <div> <a href="/pm/Photoshop/">Photoshop</a> <a href="/pm/ai/">Illustrator</a> <a href="/pm/Fireworks/">Fireworks</a> <a href="/pm/Coreldraw/">Coreldraw</a> <a href="/pm/Flash/">Flash</a> <a href="/pm/max/">3DS MAX</a> <a href="/pm/cad/">AutoCAD</a> <a href="/pm/Maya/">Maya</a> <a href="/pm/xiuxiu/">美图秀秀</a> </div> <h2><a href="/web/">网页设计</a></h2> <div> <a href="/web/dw/">Dreamweaver</a> <a href="/web/html-css/">HTML/CSS</a> <a href="/web/js/">JavaScript</a> <a href="/web/ft/">FrontPage</a> <a href="/web/ajax/">Ajax</a> </div> <h2><a href="/Design/">设计赏析</a></h2> <div> <a href="/Design/pm/">平面设计作品</a> <a href="/Design/web/">网页设计欣赏</a> <a href="/Design/3d/">三维动画赏析</a> <a href="/Design/logo/">标志设计欣赏</a> <a href="/Design/pic/">插画设计作品</a> <a href="/Design/room/">建筑设计欣赏</a> <a href="/Design/vi/">VI设计欣赏</a><br/> <a href="/Design/ui/">UI设计欣赏</a> <a href="/design/photography/">摄影艺术</a> <a href="/design/idea/">设计理念</a> </div> <h2><a href="/Program/">网络编程</a></h2> <div> <a href="/Program/asp/">ASP教程</a> <a href="/Program/php/">PHP教程</a> <a href="/Program/java/">Java</a> <a href="/Program/net/">ASP.NET</a> <a href="/Program/SilverLight/">SilverLight</a> <a href="/Program/delphi/">Delphi</a> <a href="/Program/c/">C语言</a> <a href="/Program/cp/">C++</a> <a href="/Program/Python/">Python</a> <a href="/Program/Perl/">Perl</a> <a href="/Program/Ruby/">Ruby</a> <a href="/Program/WPF/">WPF</a> <a href="/Program/Android/">Android</a> <a href="/Program/wp7/">Windows Phone</a> <a href="/Program/IOS/">IOS</a> <a href="/Program/go/">Go语言</a> </div> <h2><a href="/system/">操作系统</a></h2> <div> <a href="/system/win/">Windows</a> <a href="/system/lin/">Linux</a> <a href="/system/mac/">Mac OS X</a> </div> <h2><a href="/office/">办公软件</a></h2> <div> <a href="/office/word/">Word教程</a> <a href="/office/excel/">Excel教程</a> <a href="/office/ppt/">PowerPoint教程</a> <a href="/office/wps/">WPS Office</a> </div> <h2><a href="/db/">数据库</a></h2> <div> <a href="/db/mysql/">MySQL</a> <a href="/db/mssql/">SQL Server</a> <a href="/db/Oracle/">Oracle</a> <a href="/db/nosql/">NoSQL</a> </div> <h2><a href="/fzl/">非主流</a></h2> <div> <a href="/fzl/girl/">非主流美女</a> <a href="/fzl/boy/">非主流男生</a> <a href="/fzl/pic/">非主流图片</a> <a href="/fzl/clothes/">非主流服饰</a><br/> <a href="/fzl/sp/">非主流饰品</a> <a href="/fzl/st/">非主流闪图</a> </div> <h2><a href="/qq/">QQ专区</a></h2> <div> <a href="/qq/zone/">QQ空间</a> <a href="/qq/fz/">QQ分组</a> <a href="/qq/sc/">QQ素材</a> <a href="/qq/blog/">QQ日志</a> <a href="/qq/name/">QQ网名</a> <a href="/qq/sign/">QQ签名</a> </div> <h2><a href="/game/">游戏频道</a></h2> <div> <a href="/game/dj/">单机游戏</a> <a href="/game/wl/">网络游戏</a> <a href="/game/ios/">iOS游戏</a> <a href="/game/android/">Android游戏</a> </div> </div> </div> <div class="tabTitleBar imgTxtBar-c clearfix mt10"> <h3 class="titleMain clearfix"><span class="txt red">最新摄影</span></h3> <div class="imgTxtBar clearfix imgTxtBar-c mt10"> <a href="http://www.th7.cn/Design/photography/201701/837383.shtml" target="_blank" class="cursor w140 mb15 fl"> <div class="w140"><img src="http://th7.7-wx.com/d/file/p/2017/01/18/smallbafded9562daefce4242ee468cc17c801484705270.jpg" alt="Andrew:忽然醉景" title="Andrew:忽然醉景" width="140" height="90"/></div></a> <a href="http://www.th7.cn/Design/photography/201701/837381.shtml" target="_blank" class="cursor w140 mb15 fl"> <div class="w140"><img src="http://th7.7-wx.com/d/file/p/2017/01/18/small21b25b602802cc6a520a02b1279d86e51484705259.jpg" alt="在最短时间内抓住眼球!大师构图之图像-背景对比精讲" title="在最短时间内抓住眼球!大师构图之图像-背景对比精讲" width="140" height="90"/></div></a> <a href="http://www.th7.cn/Design/photography/201701/837378.shtml" target="_blank" class="cursor w140 mb15 fl"> <div class="w140"><img src="http://th7.7-wx.com/d/file/p/2017/01/18/small1698e2f0c1a71786f50af8c9d2aa2a061484705252.jpg" alt="如果连方向都错了 那调色就是错上加错!" title="如果连方向都错了 那调色就是错上加错!" width="140" height="90"/></div></a> <a href="http://www.th7.cn/Design/photography/201701/837377.shtml" target="_blank" class="cursor w140 mb15 fl"> <div class="w140"><img src="http://th7.7-wx.com/d/file/p/2017/01/18/small48c4496e0f0f75ea9232347f75c61b671484705246.jpg" alt="Andrea Star Reese:城市洞穴" title="Andrea Star Reese:城市洞穴" width="140" height="90"/></div></a> <a href="http://www.th7.cn/Design/photography/201701/837375.shtml" target="_blank" class="cursor w140 mb15 fl"> <div class="w140"><img src="http://th7.7-wx.com/d/file/p/2017/01/18/small591ce16d36a20b6b9273d0f5cb1943df1484705238.jpg" alt="宛如倒影的少女诗行笔触" title="宛如倒影的少女诗行笔触" width="140" height="90"/></div></a> <a href="http://www.th7.cn/Design/photography/201701/837373.shtml" target="_blank" class="cursor w140 mb15 fl"> <div class="w140"><img src="http://th7.7-wx.com/d/file/p/2017/01/18/smallad805c522c34a2a1080b4ab0ff85050f1484705233.jpg" alt="360度的冰岛小星球 (附教程)" title="360度的冰岛小星球 (附教程)" width="140" height="90"/></div></a> <a href="http://www.th7.cn/Design/photography/201701/837371.shtml" target="_blank" class="cursor w140 mb15 fl"> <div class="w140"><img src="http://th7.7-wx.com/d/file/p/2017/01/18/small1221406ae56f4172cf94cff307709f5e1484705228.jpg" alt="摄影新视界 水下摄影师带你走入神奇海底" title="摄影新视界 水下摄影师带你走入神奇海底" width="140" height="90"/></div></a> <a href="http://www.th7.cn/Design/photography/201701/837368.shtml" target="_blank" class="cursor w140 mb15 fl"> <div class="w140"><img src="http://th7.7-wx.com/d/file/p/2017/01/18/smalle783f2a930a2f9527195091b0a99041e1484705221.jpg" alt="谈谈外景人像用光思路 婚纱摄影旅拍经验" title="谈谈外景人像用光思路 婚纱摄影旅拍经验" width="140" height="90"/></div></a> </div> </div> <div class="tabTitleBar tabSlideBar mb10 mt10"> <div class="tabState"></div> <h3 class="titleMain clearfix tabred"><span class="txt cur">最新教程</span><span class="txt">周点击榜</span></h3> <div class="newsRankBar clearfix"> <ul class="newsRankList current"> <li><em class="no1">1</em><a href="http://www.th7.cn/db/nosql/201701/223732.shtml" target="_blank" title="Redis---key操作">Redis---key操作</a></li> <li><em class="no2">2</em><a href="http://www.th7.cn/db/nosql/201701/223731.shtml" target="_blank" title="Invalid property 'maxActive' of bean class [redis.clients.jedis.JedisPoolConfig]">Invalid property &#39;maxActive&#39; of be</a></li> <li><em class="no3">3</em><a href="http://www.th7.cn/db/nosql/201701/223730.shtml" target="_blank" title="封装的RedisUtil工具类">封装的RedisUtil工具类</a></li> <li><em class="no4">4</em><a href="http://www.th7.cn/db/nosql/201701/223729.shtml" target="_blank" title="redis的分布式锁">redis的分布式锁</a></li> <li><em class="no5">5</em><a href="http://www.th7.cn/db/nosql/201701/223728.shtml" target="_blank" title="spring+redis ip不能为127.0.0.1">spring+redis ip不能为127.0.0.1</a></li> <li><em class="no6">6</em><a href="http://www.th7.cn/db/nosql/201701/223727.shtml" target="_blank" title="tomcat+nginx+redis实现均衡负载、session共享(一)">tomcat+nginx+redis实现均衡负载、session共</a></li> <li><em class="no7">7</em><a href="http://www.th7.cn/db/nosql/201701/223726.shtml" target="_blank" title="tomcat+nginx+redis实现均衡负载、session共享(二)">tomcat+nginx+redis实现均衡负载、session共</a></li> <li><em class="no8">8</em><a href="http://www.th7.cn/db/nosql/201701/223725.shtml" target="_blank" title="php操作redis常用代码例子">php操作redis常用代码例子</a></li> <li><em class="no9">9</em><a href="http://www.th7.cn/db/nosql/201701/223724.shtml" target="_blank" title="php操作redis 封装的类">php操作redis 封装的类</a></li> <li><em class="no10">10</em><a href="http://www.th7.cn/db/nosql/201701/223723.shtml" target="_blank" title="mongodb的安装启动">mongodb的安装启动</a></li> </ul> <ul class="newsRankList"> <li><em class="no1">1</em><a href="http://www.th7.cn/pm/Photoshop/201701/84334.shtml" target="_blank" title="Photoshop给可爱的美女照片转手绘特效">Photoshop给可爱的美女照片转手绘特效</a></li> <li><em class="no2">2</em><a href="http://www.th7.cn/pm/Photoshop/201701/84352.shtml" target="_blank" title="Photoshop合成阴冷的小巷雨夜场景">Photoshop合成阴冷的小巷雨夜场景</a></li> <li><em class="no3">3</em><a href="http://www.th7.cn/pm/Photoshop/201701/84335.shtml" target="_blank" title="Photoshop调出铁道旁人像照片蓝色逆光效果">Photoshop调出铁道旁人像照片蓝色逆光效果</a></li> <li><em class="no4">4</em><a href="http://www.th7.cn/pm/Photoshop/201701/84336.shtml" target="_blank" title="Photoshop给马路上的情侣图片加上紫色霞光">Photoshop给马路上的情侣图片加上紫色霞光</a></li> <li><em class="no5">5</em><a href="http://www.th7.cn/pm/Photoshop/201701/84337.shtml" target="_blank" title="Photoshop给室内偏亮的人物保细节磨皮">Photoshop给室内偏亮的人物保细节磨皮</a></li> <li><em class="no6">6</em><a href="http://www.th7.cn/pm/Photoshop/201701/84351.shtml" target="_blank" title="Photoshop给树林人物加上梦幻的暗调蓝灰色">Photoshop给树林人物加上梦幻的暗调蓝灰色</a></li> <li><em class="no7">7</em><a href="http://www.th7.cn/pm/Photoshop/201701/84332.shtml" target="_blank" title="Photoshop给满脸雀斑的欧美人像磨皮">Photoshop给满脸雀斑的欧美人像磨皮</a></li> <li><em class="no8">8</em><a href="http://www.th7.cn/pm/Photoshop/201701/84333.shtml" target="_blank" title="Photoshop制作金色大气的钻石艺术字教程">Photoshop制作金色大气的钻石艺术字教程</a></li> <li><em class="no9">9</em><a href="http://www.th7.cn/pm/Photoshop/201701/84330.shtml" target="_blank" title="Photoshop简单的鼠绘逼真的无人机教程">Photoshop简单的鼠绘逼真的无人机教程</a></li> <li><em class="no10">10</em><a href="http://www.th7.cn/pm/Photoshop/201701/84347.shtml" target="_blank" title="Photoshop给情侣外景照片添加落夕阳景色">Photoshop给情侣外景照片添加落夕阳景色</a></li> </ul> </div> </div> <div class="borderTred mt20"> <div id="hm_t_75055"></div> </div> <div class="mt20 newFixedBox"> <script type="text/javascript">var cpro_id = "u1065261";</script><script type="text/javascript" src="http://cpro.baidustatic.com/cpro/ui/c.js"></script> <script type="text/javascript">var jd_union_unid="34692",jd_ad_ids="513:6",jd_union_pid="CNerzbOOKxCEjwIaACDtmsGSAioA";var jd_width=300;var jd_height=250;var jd_union_euid="";var p="BhQDUhJSFAcXNwpfBkgyTUMIRmtKRk9aZV8ETVxNNwpfBkgyZA8Hfj5rS2pkCHksVksIUBRuJE1kcgtZK1wQBBIGUhNZJQAXAF0YayVdVloIKxB7AyJYEUYGJQIXDlUZWREDFQ5VGFwlAyI3ZQ%3D%3D";</script><script type="text/javascript" charset="utf-8" src="//u.x.jd.com/static/js/auto.js"></script> <script language="javascript" src="http://u493025.nr1234.com/mediashowFix.php?id=228371"></script> </div> </div> </div> </div> <div id="footer"> <div class="main"> <p> <a target="_blank" href="http://www.7-inc.com/about/" rel="nofollow">关于第七城市</a> - <a target="_blank" href="http://www.7-inc.com/contact/" rel="nofollow">联系我们</a> - <a target="_blank" href="http://www.th7.cn/e/tool/feedback/?bid=3" rel="nofollow">版权声明</a> - <a target="_blank" href="https://m.th7.cn/show/5/201612/1060970.html">手机版</a> </p> <p><a target="_blank" href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=33030202000166" rel="nofollow"><img src="/images/beian-ga.png"> 浙公网安备 33030202000166号</a></p> <p>工信部备案号:<a target="_blank" href="http://www.miitbeian.gov.cn" rel="nofollow">浙ICP备09062716号-2</a></p> <p>©2005-2017 <a target="_blank" href="http://www.7-inc.com">温州第七城市信息科技有限公司</a> Inc. All Rights Reserved</p> </div> </div> <div class="gotop hide" id="gotop"><a href="javascript:;" class="th7-weixin"></a> <div class="th7-weixin-con hide"> <p class="th7-weixin-title">微信扫一扫</p> <div class="th7-weixin-pic"> <img src="/sanda2015/img/weixin.jpg" alt="第七城市微信公众平台" width="100" height="100"></div> </div> <a href="/e/tool/feedback/?bid=1" target="_blank" class="feedback" rel="nofollow"></a><a href="javascript:;" class="go"></a> </div> <span id="tmpAreaLmtDiv"> <div style="z-index:1000;right:0px;bottom:0px;overflow-x: hidden;overflow-y:hidden;position:fixed;width:350px;height:238px;" id="PcPoPmarket"> <div id="popTop" style="z-index:1000;POSITION:absolute;right:0;height:30px;overflow:hidden;"> <span class="popBtn popClose" onclick="closeDiv()"></span> <span class="popBtn popShow" onclick="showDiv()" id="showvod" style="display: none;"></span> <span class="popBtn popHide" onclick="hideDiv()" id="hidevod" style="display: block;"></span></div> <iframe id="popFrame" scrolling="no" frameborder="0" width="350" allowtransparency="true" height="238" src="/poppage.html" target="_blank">-</iframe> </div> </span> <script> (function() { var s = "_" + Math.random().toString(36).slice(2); document.write('<div id="' + s + '"></div>'); (window.slotbydup=window.slotbydup || []).push({ id: '1112087', container: s, size: '120,270', display: 'inlay-fix' }); })(); </script> </div> <script type="text/javascript"> var duoshuoQuery={short_name:"th7"};(function(){var ds=document.createElement('script');ds.type='text/javascript';ds.async=true;ds.src=(document.location.protocol=='https:'?'https:':'http:')+'//static.duoshuo.com/embed.js';ds.charset='UTF-8';(document.getElementsByTagName('head')[0]||document.getElementsByTagName('body')[0]).appendChild(ds)})();</script> <script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"1","bdMiniList":false,"bdPic":"","bdStyle":"1","bdSize":"16"},"share":{}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script> <script src="/sanda2015/css/common.js" type="text/javascript"></script> <script src="/sanda2015/css/ads.js"></script> <script> var isAdEnabled = isAdEnabled || !1; if( !isAdEnabled ){ $("body").prepend('<link rel="stylesheet" href="/sanda2015/assistance/message.css" type="text/css" media="screen"/><div class="error message"><h3>帮助 第七城市 更好的生产内容,请将我们加入广告屏蔽插件的白名单,非常感谢。<a href="/sanda2015/assistance/Ask_for_your_assistance.html" target="_blank">具体方法</a></h3></div>'); $('.error').animate({top:"0"},500); $('.error').css('top',-500); var t1=setTimeout("$('.error').css('top',-500)",15000); $(document).ready(function(){ $('.message').click(function(){ $(this).animate({top: -$(this).outerHeight()},500); }); }); } $.get("http://www.th7.cn/e/public/ViewClick/?classid=5&id=1060970&addclick=1", function(result){ var arrtemp = result.split("'"); $("#click").append(arrtemp[1]); }); </script> </body> </html>