1 package us.codecraft.webmagic.selector;
2
3 import java.util.List;
4
5 import org.htmlcleaner.HtmlCleaner;
6 import org.htmlcleaner.TagNode;
7 import org.htmlcleaner.XPatherException;
8 import org.jsoup.Jsoup;
9 import org.jsoup.nodes.Document;
10 import org.junit.Assert;
11 import org.junit.Ignore;
12 import org.junit.Test;
13
14 import org.w3c.dom.Node;
15 import us.codecraft.webmagic.Page;
16 import us.codecraft.webmagic.Spider;
17 import us.codecraft.webmagic.processor.PageProcessor;
18 import us.codecraft.xsoup.XPathEvaluator;
19 import us.codecraft.xsoup.Xsoup;
20
21 import javax.xml.transform.TransformerException;
22
23
24
25
26 public class XpathSelectorTest {
27
28 private String html = "\n"
29 + "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n"
30 + "<html lang='zh-CN' xml:lang='zh-CN' xmlns='http://www.w3.org/1999/xhtml'>\n"
31 + "<head>\n"
32 + " <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"/>\n"
33 + " <link rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/img/favicon.ico\" />\n"
34 + " <title>再次吐槽easyui - 开源中国 OSChina.NET</title>\n"
35 + " <link rel=\"stylesheet\" href=\"/css/style2013.css?ver=20130411\" type=\"text/css\" media=\"screen\" />\n"
36 + " <link rel=\"stylesheet\" href=\"/css/channel.css?date=20130324_2\" type=\"text/css\" media=\"screen\" />\n"
37 + " <link rel=\"stylesheet\" type=\"text/css\" href=\"/js/2011/fancybox/jquery.fancybox-1.3.4.css\" media=\"screen\" />\n"
38 + " <link rel=\"alternate\" type=\"application/rss+xml\" title=\"最新代码分享列表\" href=\"http://www.oschina.net/code/rss\" />\n"
39 + " <link rel=\"alternate\" type=\"application/rss+xml\" title=\"开源中国 - 源码列表\" href=\"http://www.oschina.net/code/source_rss\" />\n"
40 + " <link rel=\"alternate\" type=\"application/rss+xml\" title=\"最新问题列表\" href=\"http://www.oschina.net/question/rss\" />\n"
41 + " <script type=\"text/javascript\" src=\"/js/2012/jquery-1.7.1.min.js\"></script>\n"
42 + " <script type=\"text/javascript\" src=\"/js/2012/jquery.form.js\"></script>\n"
43 + " <script type=\"text/javascript\" src=\"/js/2011/fancybox/jquery.fancybox-fixed.js?20130327\"></script>\n"
44 + " <link rel=\"stylesheet\" href=\"/js/poshytip/tip-yellowsimple/tip-yellowsimple.css\" type=\"text/css\" />\n"
45 + " <script type=\"text/javascript\" src=\"/js/poshytip/jquery.poshytip.min.js\"></script>\n"
46 + " <script type=\"text/javascript\">\n"
47 + " \tg_msg = {\n"
48 + "};\n"
49 + "\n"
50 + "g_user = {\n"
51 + "\tid:190591,\n"
52 + "\tname:'黄亿华',\n"
53 + "\tlogin:true,\n"
54 + "\tbportrait:'<img src=\"http://static.oschina.net/uploads/user/95/190591_50.jpg?t=1347254905000\" align=\"absmiddle\" alt=\"黄亿华\" title=\"黄亿华\" class=\"SmallPortrait\" user=\"190591\"/>'\n"
55 + "}; </script>\n"
56 + " <script type=\"text/javascript\" src=\"/js/2011/oschina.js?ver=20121007\"></script>\n"
57 + " <script type=\"text/javascript\" src=\"/js/utils.js\"></script>\n"
58 + " <script type=\"text/javascript\" src=\"/js/channel.js\"></script>\n"
59 + " <style type=\"text/css\">\n"
60 + " body,table,input,textarea,select {font-family:Verdana,sans-serif,宋体;} \n"
61 + " </style>\n"
62 + " </head>\n"
63 + "<body>\n"
64 + "<div id='OSC_NavTop'>\n"
65 + "\t<div class=\"wp998\">\n"
66 + " <div id=\"OSC_Channels\">\n"
67 + " \t<ul>\n"
68 + " \t<li class=\"item\"><a href=\"http://www.oschina.net/\" class='home'>首页</a></li> \t<li class=\"item\"><a href=\"http://www.oschina.net/project\" class='project'>开源软件</a></li>\n"
69 + " \t<li class=\"item control_select\">\n"
70 + "\t\t\t\t<a href=\"http://www.oschina.net/question\" class='question hl'>讨论区</a>\t\t\t\t\n"
71 + "\t\t\t\t<ul class=\"cs_content\">\t\t\t\t\t\n"
72 + " \t<li><a href=\"http://www.oschina.net/question?catalog=1\"> 技术问答 » </a></li>\n"
73 + " \t<li><a href=\"http://www.oschina.net/question?catalog=2\"> 技术分享 » </a></li>\n"
74 + " \t<li><a href=\"http://www.oschina.net/question?catalog=3\"> IT大杂烩 » </a></li>\n"
75 + " \t<li><a href=\"http://www.oschina.net/question?catalog=100\"> 职业生涯 » </a></li>\n"
76 + " \t<li><a href=\"http://www.oschina.net/question?catalog=4\"> 站务/建议 » </a></li>\n"
77 + " \t<li><a href=\"http://www.oschina.net/alipay\"> 支付宝专区 » </a></li>\n"
78 + "\t\t\t\t</ul>\n"
79 + "\t\t\t</li>\n"
80 + " \t<li class=\"item\"><a href=\"http://www.oschina.net/code/list\" class='code'>代码分享</a></li>\n"
81 + " \t \t<li class=\"item\"><a href=\"http://www.oschina.net/blog\" class='blog'>博客</a></li>\n"
82 + " \t<li class=\"item\"><a href=\"http://www.oschina.net/translate\" class='tran'>翻译</a></li>\n"
83 + " <li class=\"item\"><a href=\"http://www.oschina.net/news\" class='news'>资讯</a></li>\n"
84 + " \t<li class=\"item control_select\">\n"
85 + "\t\t\t\t<a href=\"http://www.oschina.net/android\" class='mobile'>移动开发</a>\n"
86 + "\t\t\t\t<ul class=\"cs_content cs_mobile\">\n"
87 + " \t<li class=\"android_\"><a href=\"http://www.oschina.net/android\">Android开发专区</a></li>\n"
88 + " \t<li class=\"ios_\"><a href=\"http://www.oschina.net/ios/home\">iOS开发专区</a></li>\n"
89 + " \t<li class=\"ios_\"><a href=\"http://www.oschina.net/ios/codingList\">iOS代码库</a></li>\n"
90 + " \t<li class=\"wp7_\"><a href=\"http://www.oschina.net/wp7\">WP7开发专区</a></li>\n"
91 + "\t\t\t\t</ul>\n"
92 + "\t\t\t</li>\n"
93 + " \t<li class=\"item t_job\"><a href=\"http://www.oschina.net/job\" class='job'>招聘</a></li>\n"
94 + " \t</ul>\n"
95 + " </div>\n"
96 + "\t\t<div id=\"OSC_Userbar\">\n"
97 + " \t\t \t\t<em>黄亿华</em>,您好 \n"
98 + "\t\t\t<span class=\"control_select\">\n"
99 + "\t\t\t\t<a href=\"http://my.oschina.net/flashsword\" id=\"MySpace\" title=\"我的空间\">我的空间</a>\n"
100 + "\t\t\t\t<ul class=\"cs_content cs_myspace\">\n"
101 + " \t<li class='msg_'><a href='http://www.oschina.net/home/go?page=admin%2Finbox'>站内留言</a></li>\n"
102 + " \t<li class='discuss_'><a href='http://my.oschina.net/flashsword/?ft=bbs&scope=2&showme=1'>我的讨论记录</a></li>\n"
103 + " \t<li class='code_'><a href='http://www.oschina.net/code/list_by_user?id=190591'>我分享的代码</a></li>\n"
104 + " \t<li class='blog_'><a href='http://www.oschina.net/home/go?page=blog'>我的博客</a></li>\n"
105 + " \t<li class='friends_'><a href='http://www.oschina.net/home/go?page=fellow'>我关注的人</a></li>\n"
106 + " \t<li class='favorites_'><a href='http://www.oschina.net/home/go?page=favorites'>我的收藏夹</a></li>\n"
107 + " \t<li class='profile_'><a href='http://www.oschina.net/home/go?page=admin%2Fprofile'>个人资料修改</a></li>\n"
108 + " \t<li class='portrait_'><a href='http://www.oschina.net/home/go?page=admin%2Fportrait'>更改我的头像</a></li>\n"
109 + "\t\t\t\t</ul>\n"
110 + "\t\t\t</span> | \n"
111 + "\t\t\t<a href=\"http://www.oschina.net/home/go?page=admin%2Fnew-project\">添加软件</a> | <a href=\"http://www.oschina.net/home/go?page=admin%2Fnew-release\">投递新闻</a> | <a href=\"/action/user/logout?session=6db40e6e2d1061998068&goto_page=http%3A%2F%2Fwww.oschina.net%2Fquestion%2F818848_107307\">退出</a>\n"
112 + " \t\t\t\t</div>\n"
113 + "\t\t<div class='clear'></div>\n"
114 + "\t</div>\n"
115 + "</div>\n"
116 + "<div id='OSC_Banner'><div class=\"wp998\"><a href='http://www.oschina.net/' class='Logo' title='OSChina 开源中国'>开源中国</a>\n"
117 + "<h1><a href='/question'>讨论区</a></h1>\n"
118 + "<dl>\n"
119 + "\t<dt>当前位置:</dt>\n"
120 + "\t<dd>\n"
121 + "\t\t\t\t\t \t\t<a href=\"/question\">讨论区</a> »\n"
122 + " \t\t<a href=\"/question?catalog=1\">技术问答</a>\t\t\t\t\t\t\t\t» <a href=\"/p/jquery+easyui\">EasyUI</a>\n"
123 + "\t\t\t\t\t\t\t\t\t\t</dd>\n"
124 + "</dl>\n"
125 + "<form action='http://www.oschina.net/search' class='search'>\n"
126 + "\t<input type='hidden' name='scope' value='bbs'/>\n"
127 + "\t<input id='channel_q' type='text' name='q' value='' placeholder='资讯、软件、分享、代码、博客' class='TXT'/>\n"
128 + " <button type='submit' class='BTN'>搜 索</button>\n"
129 + "</form>\n"
130 + "<div class='clear'></div></div></div>\n"
131 + "<div id=\"OSC_Screen\">\n"
132 + "\t<div id=\"OSC_Content\" class='CenterDiv'>\n"
133 + "<script type=\"text/javascript\" src=\"/js/scrolltopcontrol.js\"></script>\n"
134 + "<script type=\"text/javascript\">\n"
135 + " \tscrolltotop.offset(100,120);\n"
136 + " \tscrolltotop.init();\n"
137 + "\t$(function(){\n"
138 + "\t\t$('a.ShowUserOutline img.SmallPortrait').poshytip({\n"
139 + "\t\t\tclassName: 'tip-yellowsimple',\n"
140 + "\t\t\talignTo: 'target',\n"
141 + "\t\t\talignX: 'right',\n"
142 + "\t\t\talignY: 'inner-top',\n"
143 + "\t\t\toffsetX: 5,\n"
144 + "\t\t\toffsetY: 0,\n"
145 + "\t\t\tfade: false,\n"
146 + "\t\t\tslide: false,\n"
147 + "\t\t\tcontent: function(updateCallback) {\n"
148 + "\t\t\t\tajax_get(\"/action/ajax/get_user_outline?id=\"+$(this).attr('user'),false,function(html){\n"
149 + "\t\t\t\t\tupdateCallback(html);\n"
150 + "\t\t\t\t});\n"
151 + "\t\t\t\treturn \"<div style='height:100px;'>Loading...</div>\";\n"
152 + "\t\t\t}\n"
153 + "\t\t});\n"
154 + "\t});\n"
155 + "\tfunction add_to_favorite(pid,concern_it){\n"
156 + "\t\t\tif(concern_it){\n"
157 + "\t\t\t$(\"#p_attention_count\").load(\"/action/favorite/add?mailnotify=true&type=2&id=\"+pid, {user: '190591'});\n"
158 + "\t\t\t$('#attention_it').html('<a href=\"javascript:add_to_favorite('+pid+',false)\">取消</a>');\t\n"
159 + "\t\t}\n"
160 + "\t\telse{\n"
161 + "\t\t\t$(\"#p_attention_count\").load(\"/action/favorite/cancel?type=2&id=\"+pid, {user: '190591'});\n"
162 + "\t\t\t$('#attention_it').html('<a href=\"javascript:add_to_favorite('+pid+',true)\">收藏</a>');\n"
163 + "\t\t}\n"
164 + "\t\t}\n"
165 + "</script>\n"
166 + "\n"
167 + "\n"
168 + "\n"
169 + "<div class='Question'>\n"
170 + "\t\n"
171 + "\t<div class='Body'>\n"
172 + "\t<div class='Title'>\n"
173 + "\t\t<div class='Asker'><a href=\"http://my.oschina.net/u/818848\" class=\"ShowUserOutline\" target=\"_blank\"><img src=\"http://static.oschina.net/uploads/user/409/818848_50.jpg?t=1357353541000\" align=\"absmiddle\" alt=\"午后冬日\" title=\"午后冬日\" class=\"SmallPortrait\" user=\"818848\"/></a></div>\n"
174 + "\t\t<div class='QTitle'>\n"
175 + "\t\t\t<h1><a href=\"http://www.oschina.net/question/818848_107307\" hidefocus=\"true\" name='top'>再次吐槽easyui</a></h1>\n"
176 + "\t\t\t<div class='stat'>\n"
177 + "\t\t\t\t<a href=\"http://my.oschina.net/u/818848\" target=\"_blank\">午后冬日</a>\n"
178 + "\t\t\t\t发表于 2013-4-21 02:28 13小时前,\n"
179 + "\t\t\t\t<a href='#answers' class='answer_count'>3</a>回/289阅,\n"
180 + "\t\t\t\t最后回答: 4小时前\t\t\t\t\t\t\t\t\t\t\t</div>\n"
181 + "\t\t</div>\n"
182 + "\t\t\n"
183 + "\t\t<div class='clear'></div>\n"
184 + "\t</div>\n"
185 + "\t\t \t \t\t\t\t\t\n"
186 + "\t\t<p style='color:#A00;font-weight:bold;margin:10px 0 0 3px;'>Java、PHP、Ruby、iOS、Python 等 JetBrains 开发工具低至 99 元(3折),<a href='http://www.oschina.net/shop/jetbrains' target='_blank'>详情»</a></p>\n"
187 + "\t\t<div class='Content'>\n"
188 + "\t\t\t\t\t\t<div class='detail'>刚用到easyui treegrid组件,发现这货第一次加载时候并没有传默认参数,展开某一列时候才传递id:xx的参数。这样和后台总是疙里疙瘩,像没事就拌嘴的两口子,查网上都遇到相同问题,最好解决方案就是通过 \n"
189 + "<span style=\"font-family:Arial, Helvetica, 'Nimbus Sans L', sans-serif;font-size:14px;line-height:normal;background-color:#FFFFFF;\">onBeforeExpand事件来扩展,自行解决。看到官方例子中简洁的代码,感觉easyui耍流氓了,真搞不懂为何要这样实现</span><div class='clear'></div></div>\n"
190 + "\t\t\t\t\t\t<div class='Tags'>\n"
191 + "\t\t\t\t<strong>标签:</strong>\t\t\t\t\n"
192 + "\t\t\t\t\t\t\t\t\t\t\t\t<a href='http://www.oschina.net/question/tag/jquery+easyui' class='tag project' title='jQuery的UI组件 EasyUI'>EasyUI</a> \t\t\t\t\t\t\t\t\t\t\t</div>\n"
193 + "\t\t\t\t\t\t<div class='SameQuestions'>\n"
194 + "\t\t\t<span id='RQuestionAction'>\n"
195 + "\t\t\t\t\t\t\t\t\t<a href=\"javascript:ask_too(107307,true)\" class='rndbutton'><span>我想问同样的问题</span></a>\n"
196 + "\t\t\t\t\t\t</span>\n"
197 + "\t\t\t共<em id='c_asker_count'>0</em>个人想要问同样的问题\n"
198 + "\t\t\t\t\t\t<a href=\"javascript:make_question_more_detail(107307)\">补充话题说明»</a>\n"
199 + "\t\t\t</div>\n"
200 + "\t\t\t\t\t\t<div class='EditLogs'>\n"
201 + "\t<ul></ul>\n"
202 + "</div>\t\t</div>\n"
203 + "\t\t<style type='text/css'>\n"
204 + "\t\t#favor_form{width:200px;}\n"
205 + " #favor_form p {color:#666;}\n"
206 + " #favor_form form{height:60px;width:200px;}\n"
207 + " #favor_form form ._favor_input{display:block;margin:2px 0;width:199px;}\n"
208 + " #favor_form form ._favor_button{float:left;padding:2px 5px;}\n"
209 + " .favor_ok {text-align:center;font-size:10.5pt;width:199px;height:60px;margin-top:10px;}\n"
210 + " #TagsSwitcher{cursor:pointer;float:right;margin-top:10px;}\n"
211 + " #MyTags{display:none;width:199px;}\n"
212 + " #MyTags a.tag {float:left; background-color: #E0EAF1;border-bottom: 1px solid #3E6D8E;border-right: 1px solid #7F9FB6;color: #3E6D8E;font-size: 8pt;line-height: 16px;margin: 2px 2px 2px 0;padding: 2px 4px;text-decoration: none;white-space: nowrap;}\n"
213 + "\t\t.osc_promotion{ position: relative; display: inline-block; padding: 10px; margin: 10px 0; border: 1px solid #ccc;}\n"
214 + " .osc_promotion .c{ position: absolute; right: -1px; top: -1px;}\n"
215 + "\t\t.ask_toolbar {float:right;list-style: none; font-size: 12px; color: #333; height: 28px;_padding-top: 5px; overflow: hidden;margin:20px 0 10px 0;}\n"
216 + " .ask_toolbar div{ float: left; margin-left: 5px; background: url(\"/img/ask-icon.gif\") no-repeat; padding: 6px 0 6px 15px; padding-left: 15px; height: 16px;}\n"
217 + " .ask_toolbar a{ height: 16px; color: #333; text-decoration: none; display:inline-block; zoom:1; vertical-align: middle; }\n"
218 + " .ask_share{width: 89px;vertical-align: bottom; line-height: 15px; _line-height: 14px;}\n"
219 + " .ask_share a{background: url(\"/img/ask-icon.gif\"); width: 16px; }\n"
220 + " a.ask_share_sina{ background: url(\"/img/ask-icon.gif\") 0 -40px no-repeat; margin-left: 5px; }\n"
221 + " a.ask_share_tencent{background-position: 0 -70px; margin-left: 5px; }\n"
222 + " .ask_toolbar em{ height: 28px; line-height:28px; width: 14px; display: inline-block; float: left; background: url(\"/img/ask-icon.gif\") top right;}\n"
223 + " .ask_collect a,.ask_report a, .ask_vote a, .ask_collected a{padding-left: 20px; line-height: 15px; }\n"
224 + " .ask_collect a{ background: url(\"/img/ask-icon.gif\") 0 -131px no-repeat; }\n"
225 + " .ask_collected a{ background: url(\"/img/ask-icon.gif\") 0 -100px no-repeat; }\n"
226 + " div.ask_collect_count{ background: url(\"/img/ask-icon.gif\") 0 -309px no-repeat; font-weight: bold; font-size: 14px; margin-left: 0; height: 16px;line-height: 16px;}\n"
227 + " .ask_report a{ background: url(\"/img/ask-icon.gif\") 0 -160px no-repeat;}\n"
228 + " em.ask_collect_count_r{background-position: 59px -309px;}\n"
229 + " .ask_vote a{background: url(\"/img/ask-icon.gif\");}\n"
230 + " \t\ta.ask_vote_up{background-position: 3px -190px;}\n"
231 + " a.ask_vote_down{background-position: 0 -280px;}\n"
232 + " a.ask_vote_uped {background-position: 3px -190px;}\n"
233 + " \t\ta.ask_vote_downed {background-position: 0 -280px;}\n"
234 + " .ask_vote span{ display: inline-block; margin: 0 10px; font-weight: bold; font-size: 14px; vertical-align: middle; margin-bottom: 2px; line-height: 16px;}\n"
235 + "\t\tspan.vote-down-count{margin:0 3px;}\n"
236 + "\t\tspan.vote-up-count{margin:0 3px;}\n"
237 + "\t\t</style>\n"
238 + "\t\t<div class='clear'></div>\n"
239 + " \n"
240 + "\t\t\t\t<div class=\"ask_toolbar\">\n"
241 + "\t\t\t<div class=\"ask_share\"><b>分享到</b> <a class=\"ask_share_sina\" title=\"分享到新浪微博\" href=\"javascript:void((function(s,d,e,r,l,p,t,z,c){var%20f='http://v.t.sina.com.cn/share/share.php?appkey=858381728',u=z||d.location,p=['&url=',e(u),'&title=',e(t||d.title),'&source=',e(r),'&sourceUrl=',e(l),'&content=',c||'gb2312','&pic=',e(p||'')].join('');function%20a(){if(!window.open([f,p].join(''),'mb',['toolbar=0,status=0,resizable=1,width=440,height=430,left=',(s.width-440)/2,',top=',(s.height-430)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else%20a();})(screen,document,encodeURIComponent,'','','','再次吐槽easyui: 刚用到easyui treegrid组件,发现这货第一次加载时候并没有传默认参数,展开某一列时候才传递id:xx的参数。这样和后台总是疙里疙瘩,像没事就拌嘴的两口子,查网上都遇到...','','utf-8'));\"></a><a class=\"ask_share_tencent\" title=\"分享到腾讯微博\" href=\"javascript:(function(){window.open('http://v.t.qq.com/share/share.php?url='+encodeURIComponent(document.location)+'&appkey=96f54f97c4de46e393c4835a266207f4&site=&title='+encodeURIComponent(document.title)+encodeURIComponent(': 刚用到easyui treegrid组件,发现这货第一次加载时候并没有传默认参数,展开某一列时候才传递id:xx的参数。这样和后台总是疙里疙瘩,像没事就拌嘴的两口子,查网上都遇到...'),'', 'width=450, height=400, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, location=yes, resizable=no, status=no');}())\"></a></div><em></em>\n"
242 + "\t\t\t<div class=\"ask_collect\"><a title=\"收藏此话题\" id=\"favor_trigger\" href=\"javascript:;\">收藏</a></div><em></em>\n"
243 + "\t\t\t<div class=\"ask_collect_count\" id=\"p_favor_count\">1</div><em class=\"ask_collect_count_r\"></em>\n"
244 + "\t\t\t<div class=\"ask_report\"><a href=\"javascript:report('http://www.oschina.net/question/818848_107307',107307,2)\">举报</a></div><em></em>\n"
245 + "\t\t\t<div class='ask_vote' id='Vote'>\n"
246 + "\t\t\t\t\t\t\t\t \t\t\t<a id=\"vote_down\" class=\"ask_vote_down\" href=\"javascript:;\" title=\"踩:这问题不知道在说什么,或者没什么用\">踩</a>\n"
247 + "\t\t\t\t\t\t\t\t<span class='vote-down-count'>0</span>\n"
248 + "\t\t\t\t|\n"
249 + "\t\t\t\t\t\t\t\t \t\t\t<a id=\"vote_up\" class=\"ask_vote_up\" href=\"javascript:;\" title=\"顶:这问题很有用或者很清晰明了\">顶</a>\n"
250 + "\t\t\t\t\t\t\t\t<span class='vote-up-count'>0</span>\n"
251 + "\t\t\t</div>\n"
252 + "\t\t\t<em></em>\n"
253 + "\t\t</div>\n"
254 + "\t\t<div class='clear'></div>\n"
255 + "\t\t\t\t\t\t <div class='QuestionReplies'>\n"
256 + "\t\t\t\n"
257 + " \t<h2>\t\t\t\n"
258 + "\t\t\t\t<span class='sort'>\n"
259 + "\t\t\t\t\t<a href=\"http://www.oschina.net/question/818848_107307#answers\" class='current'>按评价排序</a> |\n"
260 + "\t\t\t\t\t<a href=\"?sort=time#answers\">显示最新答案</a> | <a href=\"#top\" style='padding-left:0;'>回页面顶部</a>\n"
261 + "\t\t\t\t</span>\n"
262 + "\t\t\t\t<a name='answers'></a>共有<em class='answer_count'>3</em>个答案 <a href=\"#answerform\" class='answer'>我要回答»</a>\n"
263 + "\t\t\t</h2>\n"
264 + "\t\t\t \t<ul class='list'><li class='Answer' id='answer_467005'>\n"
265 + "\t<div class='user'><a href=\"http://my.oschina.net/u/224858\" class=\"ShowUserOutline\" name=\"AnchorAnswer467005\" target=\"_blank\"><img src=\"http://static.oschina.net/uploads/user/112/224858_50.jpg\" align=\"absmiddle\" alt=\"布谷鸟\" title=\"布谷鸟\" class=\"SmallPortrait\" user=\"224858\"/></a></div>\n"
266 + "\t<div class='body'>\n"
267 + "\t\t<div class='time'><a href=\"http://my.oschina.net/u/224858\" target=\"_blank\">布谷鸟</a> 回答于 2013-04-21 09:28 </div>\t\t\n"
268 + " \t<div class='opts'>\n"
269 + "\t\t\t \t\t \t\t<a href=\"javascript:report('http://www.oschina.net/question/818848_107307#AnchorAnswer467005',467005,17)\">举报</a>\n"
270 + " \t</div>\n"
271 + "\t\t<div class='clear'></div>\n"
272 + "\t\t<div class='detail'>对话框、日期控件和选项卡效果还不错,树状菜单没得zTree好用,建议楼主不要全部效果都依赖于此框架,有些easyui实现不好的地方可以换其它的插件实现嘛,反正我现在再也不用诸如ext和easyui之类的东西了,感觉好肥</div>\n"
273 + "\t</div>\n"
274 + "\t<div class='clear'></div>\n"
275 + "\t<div class='replies' id='PostReplies_467005'><strong>--- 共有 1 条评论 --- </strong>\n"
276 + "<ul>\n"
277 + "\t\t<li id='PostReply_467044'>\n"
278 + "\t\t<a href=\"http://my.oschina.net/u/818848\" class='p' name='AnchorAnswer467044'><img src=\"http://static.oschina.net/uploads/user/409/818848_50.jpg?t=1357353541000\" align=\"absmiddle\" alt=\"午后冬日\" title=\"午后冬日\" class=\"SmallPortrait\" user=\"818848\"/></a>\n"
279 + "\t\t<span class='b'>\n"
280 + "\t\t<span class='c'>前端水平实在有限,自己搞的总是感觉不伦不类,只能用这些框架,再集成其它插件,切换主题时风格又不一致。</span>\n"
281 + "\t\t<span class='t'>(4小时前 by 午后冬日)</span>\n"
282 + "\t\t<span class='opts'><a href=\"javascript:reply_to_post(467005,818848)\">回复</a></span>\n"
283 + "\t\t</span>\n"
284 + "\t\t<div class='clear'></div>\n"
285 + "\t</li>\n"
286 + "\t</ul>\n"
287 + "<div class='PagerLinks'>\n"
288 + "</div>\n"
289 + "</div>\n"
290 + "\t<div class='votes'>\t\t\t\t\t\t<a id='a_post_voteup_467005' href=\"javascript:vote_answer(467005,true,true)\" title=\"这是一个好答案,能解决问题\">有帮助</a><em id='post_voteup_467005'>(1)</em> |\n"
291 + "\t\t<a id='a_post_votedown_467005' href=\"javascript:vote_answer(467005,false,true)\" title=\"这答案无法解决问题,或者模糊不清\">没帮助</a><em id='post_votedown_467005'>(0)</em> |\n"
292 + "\t\t<a href=\"javascript:reply_to_post(467005, 0)\">评论</a><em>(1)</em> |\n"
293 + " \t<a href=\"/question/answer?question=107307&answer=467005\">引用此答案</a>\t</div>\n"
294 + "</li><li class='Answer' id='answer_467039'>\n"
295 + "\t<div class='user'><a href=\"http://my.oschina.net/rox\" class=\"ShowUserOutline\" name=\"AnchorAnswer467039\" target=\"_blank\"><img src=\"http://static.oschina.net/uploads/user/0/180_50.jpg\" align=\"absmiddle\" alt=\"静风流云\" title=\"静风流云\" class=\"SmallPortrait\" user=\"180\"/></a></div>\n"
296 + "\t<div class='body'>\n"
297 + "\t\t<div class='time'><a href=\"http://my.oschina.net/rox\" target=\"_blank\">静风流云</a> 回答于 2013-04-21 11:08 </div>\t\t\n"
298 + " \t<div class='opts'>\n"
299 + "\t\t\t \t\t \t\t<a href=\"javascript:report('http://www.oschina.net/question/818848_107307#AnchorAnswer467039',467039,17)\">举报</a>\n"
300 + " \t</div>\n"
301 + "\t\t<div class='clear'></div>\n"
302 + "\t\t<div class='detail'><p> 没办法,原来项目也是因为客户特殊的需求,对layout选型的时候,犹豫了好久,最终放弃了。<br /> 幸亏来了一个厉害的前端,解决问题,够用就好。 </p></div>\n"
303 + "\t</div>\n"
304 + "\t<div class='clear'></div>\n"
305 + "\t<div class='replies' id='PostReplies_467039'><strong>--- 共有 1 条评论 --- </strong>\n"
306 + "<ul>\n"
307 + "\t\t<li id='PostReply_467046'>\n"
308 + "\t\t<a href=\"http://my.oschina.net/u/818848\" class='p' name='AnchorAnswer467046'><img src=\"http://static.oschina.net/uploads/user/409/818848_50.jpg?t=1357353541000\" align=\"absmiddle\" alt=\"午后冬日\" title=\"午后冬日\" class=\"SmallPortrait\" user=\"818848\"/></a>\n"
309 + "\t\t<span class='b'>\n"
310 + "\t\t<span class='c'>我也是犹豫了好久,看过很多前端框架,总是不太满意。个人开发前台后台数据库全部要自己搞定,郁闷ing</span>\n"
311 + "\t\t<span class='t'>(4小时前 by 午后冬日)</span>\n"
312 + "\t\t<span class='opts'><a href=\"javascript:reply_to_post(467039,818848)\">回复</a></span>\n"
313 + "\t\t</span>\n"
314 + "\t\t<div class='clear'></div>\n"
315 + "\t</li>\n"
316 + "\t</ul>\n"
317 + "<div class='PagerLinks'>\n"
318 + "</div>\n"
319 + "</div>\n"
320 + "\t<div class='votes'>\t\t\t\t\t\t<a id='a_post_voteup_467039' href=\"javascript:vote_answer(467039,true,true)\" title=\"这是一个好答案,能解决问题\">有帮助</a><em id='post_voteup_467039'>(0)</em> |\n"
321 + "\t\t<a id='a_post_votedown_467039' href=\"javascript:vote_answer(467039,false,true)\" title=\"这答案无法解决问题,或者模糊不清\">没帮助</a><em id='post_votedown_467039'>(0)</em> |\n"
322 + "\t\t<a href=\"javascript:reply_to_post(467039, 0)\">评论</a><em>(1)</em> |\n"
323 + " \t<a href=\"/question/answer?question=107307&answer=467039\">引用此答案</a>\t</div>\n"
324 + "</li><li class='Answer' id='answer_467051'>\n"
325 + "\t<div class='user'><a href=\"http://my.oschina.net/u/224858\" class=\"ShowUserOutline\" name=\"AnchorAnswer467051\" target=\"_blank\"><img src=\"http://static.oschina.net/uploads/user/112/224858_50.jpg\" align=\"absmiddle\" alt=\"布谷鸟\" title=\"布谷鸟\" class=\"SmallPortrait\" user=\"224858\"/></a></div>\n"
326 + "\t<div class='body'>\n"
327 + "\t\t<div class='time'><a href=\"http://my.oschina.net/u/224858\" target=\"_blank\">布谷鸟</a> 回答于 2013-04-21 11:29 </div>\t\t\n"
328 + " \t<div class='opts'>\n"
329 + "\t\t\t \t\t \t\t<a href=\"javascript:report('http://www.oschina.net/question/818848_107307#AnchorAnswer467051',467051,17)\">举报</a>\n"
330 + " \t</div>\n"
331 + "\t\t<div class='clear'></div>\n"
332 + "\t\t<div class='detail'><div class=\"ref\"><h4>引用来自“布谷鸟”的答案</h4><div class=ref_body>对话框、日期控件和选项卡效果还不错,树状菜单没得zTree好用,建议楼主不要全部效果都依赖于此框架,有些easyui实现不好的地方可以换其它的插件实现嘛,反正我现在再也不用诸如ext和easyui之类的东西了,感觉好肥</div></div><div class=a_body>前后端你一个人搞啊?那确实很麻烦。面面俱到的话,工作量很大。但是如果需要实现的功能不是很多,而时间也不紧迫的话,事情干起来也还不错。如非必须,建议逐步弃用这些前端框架,在一些比较能够提升体验的地方选用一些适当的插件即可,如此也不再需要担心风格的问题,你看osc后台截图,界面那叫一个丑,用得方便顺手就够了</div></div>\n"
333 + "\t</div>\n"
334 + "\t<div class='clear'></div>\n"
335 + "\t<div class='replies' id='PostReplies_467051'></div>\n"
336 + "\t<div class='votes'>\t\t\t\t\t\t<a id='a_post_voteup_467051' href=\"javascript:vote_answer(467051,true,true)\" title=\"这是一个好答案,能解决问题\">有帮助</a><em id='post_voteup_467051'>(0)</em> |\n"
337 + "\t\t<a id='a_post_votedown_467051' href=\"javascript:vote_answer(467051,false,true)\" title=\"这答案无法解决问题,或者模糊不清\">没帮助</a><em id='post_votedown_467051'>(0)</em> |\n"
338 + "\t\t<a href=\"javascript:reply_to_post(467051, 0)\">评论</a><em>(0)</em> |\n"
339 + " \t<a href=\"/question/answer?question=107307&answer=467051\">引用此答案</a>\t</div>\n"
340 + "</li></ul>\n"
341 + "\t\t\t\t </div> \n"
342 + "\t\t<div class='AnswerForm'>\n"
343 + "\t\t\t<div class='user'><a href=\"http://my.oschina.net/flashsword\" name=\"answerform\"><img src=\"http://static.oschina.net/uploads/user/95/190591_50.jpg?t=1347254905000\" align=\"absmiddle\" alt=\"黄亿华\" title=\"黄亿华\" class=\"SmallPortrait\" user=\"190591\"/></a></div>\n"
344 + "\t\t\t<form id='form_answer' action=\"/action/question/answer?question=107307\" method=\"post\">\n"
345 + "\t\t\t\t<input type='hidden' name='user' value='190591'/>\n"
346 + "\t\t\t\t<textarea id='txt_answner' name='body' style='width:560px;height:160px;'></textarea>\n"
347 + "\t\t\t\t<input type='submit' value=' 我要回答 ' id=\"FormSubmitButton\" class='rndbutton'/>\n"
348 + "\t\t\t\t<span id='form_msg' style='display:none;'></span>\n"
349 + "\t\t\t\t<br><br>\n"
350 + "\t\t\t\t<a href=\"#answers\">回答案顶部</a> | <a href=\"#top\">回页面顶部</a>\n"
351 + "\t\t\t</form>\n"
352 + "\t\t\t<div class='clear'></div>\n"
353 + "\t\t\t<script>\t\t\t\n"
354 + " $('#form_answer').ajaxForm({\n"
355 + " \tdataType: 'json',\n"
356 + " \t\tbeforeSerialize: function($form, options) { \n"
357 + " \t\t\teditor.sync(); \n"
358 + " },\n"
359 + " \t\tbeforeSubmit: function(){\n"
360 + " \t\t\t$('#FormSubmitButton').attr('disabled','disabled');\n"
361 + " \t\t\t$('#form_msg').html(\"<span class='ajax_processing'>正在提交答案,请稍候...</span>\");\t\n"
362 + " \t\t\t$('#form_msg').show();\t\n"
363 + " \t\t},\n"
364 + " success: function(json) {\n"
365 + " \t\t\t$('#FormSubmitButton').removeAttr('disabled');\n"
366 + " \t\tif(json.msg){\n"
367 + " \t\t\t\t$('#form_msg').html(\"<span class='error_msg'>\"+json.msg+\"</span>\");\n"
368 + " \t\t\t\t$('#form_msg').show();\n"
369 + " \t\t\t}\n"
370 + " \t\telse if(json.id){\n"
371 + " \t\t\tajax_get(\"/question/show_answer?_answer_id=\"+json.id, true, function(data){\n"
372 + " \t\t\t\t\t \t\t\t\t$('.QuestionReplies ul.list').append(data);\n"
373 + " \t\t\t\t\t \t\t\t\t\teditor.html('');\n"
374 + " \t\t\t\t\t$('.answer_count').html(json.answer_count);\n"
375 + " \t\t\t}); \t\t\t\t\n"
376 + " \t\t\t\t$('#form_msg').hide();\n"
377 + " \t\t}\n"
378 + " }\n"
379 + " });\n"
380 + "\t\t\t</script>\n"
381 + "\t\t</div>\n"
382 + "\t</div>\t\n"
383 + "\t<script type=\"text/javascript\" src=\"/js/syntax-highlighter-2.1.382/scripts/brush.js\"></script>\n"
384 + "<link type=\"text/css\" rel=\"stylesheet\" href=\"/js/syntax-highlighter-2.1.382/styles/shCore.css\"/>\n"
385 + "<link type=\"text/css\" rel=\"stylesheet\" href=\"/js/syntax-highlighter-2.1.382/styles/shThemeDefault.css\"/>\n"
386 + "<script type='text/javascript'><!--\n"
387 + "$(document).ready(function(){\n"
388 + "\tSyntaxHighlighter.config.clipboardSwf = '/js/syntax-highlighter-2.1.382/scripts/clipboard.swf';\n"
389 + "\tSyntaxHighlighter.all();\n"
390 + "});\n"
391 + "//-->\n"
392 + "</script>\n"
393 + "\t<div class='QuestionRelations'>\n"
394 + "\t <div style='text-align:center;margin-bottom:10px;'>\n"
395 + " \t<a href=\"http://www.oschina.net/action/visit/ad?id=1033\" target=\"_blank\" title=\"JPush——极光推送\"><img src=\"http://static.oschina.net/uploads/space/2013/0319/103739_17pH_179699.jpg\"/></a>\n"
396 + "\t</div>\n"
397 + "\t\t<div id='QuestionWizard'>\n"
398 + "\t\t\t有什么技术问题吗?\n"
399 + "\t\t\t<a href='/question/ask' class='rndbutton'><span>我要提问</span></a>\n"
400 + "\t\t\t<div class='clear'></div>\n"
401 + "\t\t</div>\n"
402 + "\t\t\n"
403 + "\t\t\t\t\t\t<div id='OtherQuestionsOfUser' class='Qlist'>\n"
404 + "\t\t\t<strong><a href=\"http://my.oschina.net/u/818848/?ft=bbs&scope=2&showme=1\" class=\"more\">全部(29)...</a><em>午后冬日</em>的其他问题</strong>\n"
405 + "\t\t\t<ul>\n"
406 + "\t\t\t\t\t\t\t\t\t\t\t\t<li><a href=\"http://www.oschina.net/question/818848_106829\" title=\"是jsf还是ajax框架,这是个问题\">是jsf还是ajax框架,这是个问题</a><span class='date'>(4回/194阅,4天前)</span></li>\t\t\t\t\t\t<li><a href=\"http://www.oschina.net/question/818848_106805\" title=\"关于ireport的问题\">关于ireport的问题</a><span class='date'>(0回/4阅,4天前)</span></li>\t\t\t\t\t\t<li><a href=\"http://www.oschina.net/question/818848_106539\" title=\"关于JasperReports的问题\">关于JasperReports的问题</a><span class='date'>(2回/47阅,6天前)</span></li>\t\t\t\t\t\t<li><a href=\"http://www.oschina.net/question/818848_105917\" title=\"IDEA代码编辑窗口能不能上下分屏\">IDEA代码编辑窗口能不能上下分屏</a><span class='date'>(2回/53阅,10天前)</span></li>\t\t\t\t\t\t</ul>\n"
407 + "\t\t</div>\n"
408 + "\t\t\t\t<div style='text-align:center;margin-top:20px;'>\n"
409 + "\t\t<script type=\"text/javascript\" src=\"/js/ad/question.js\"></script>\n"
410 + "\t\t</div>\n"
411 + "\t\t\n"
412 + "\t\t<div id='Similarity' class='Qlist'>\n"
413 + "\t\t\t<strong>类似的话题</strong>\n"
414 + "\t\t\t<ul>\n"
415 + " \t\t\t\t<li><a href=\"http://www.oschina.net/question/267632_49688\" title=\"jQuery easyUI 分页(Pagination)用法\">jQuery easyUI 分页(Pagination)用法</a><span class='date'>(2回/1228阅,1年前)</span></li>\t\t\t\t\t\t<li><a href=\"http://www.oschina.net/question/138848_49846\" title=\"谨慎使用EasyUI\">谨慎使用EasyUI</a><span class='date'>(1回/1361阅,1年前)</span></li>\t\t\t\t\t\t<li><a href=\"http://www.oschina.net/question/205548_31992\" title=\"easyui datagird 初始化加载俩次\">easyui datagird 初始化加载俩次</a><span class='date'>(6回/690阅,1年前)</span></li>\t\t\t\t\t\t<li><a href=\"http://www.oschina.net/question/84535_32061\" title=\"打算使用easyui,求源码,求建议~\">打算使用easyui,求源码,求建议~</a><span class='date'>(17回/4105阅,1年前)</span></li>\t\t\t\t\t\t<li><a href=\"http://www.oschina.net/question/201422_32682\" title=\"jquery easyui form 有没好的设计\">jquery easyui form 有没好的设计</a><span class='date'>(2回/812阅,1年前)</span></li>\t\t\t\t\t\t<li><a href=\"http://www.oschina.net/question/183509_32885\" title=\"jeasyui 中combobox的onselect事件怎么做下拉框的级联\">jeasyui 中combobox的onselect事件怎么做下拉框的级联</a><span class='date'>(1回/741阅,1年前)</span></li>\t\t\t\t\t\t<li><a href=\"http://www.oschina.net/question/161511_36411\" title=\"easyui treegrid行编辑 效率慢怎么解决?\">easyui treegrid行编辑 效率慢怎么解决?</a><span class='date'>(1回/671阅,1年前)</span></li>\t\t\t\t\t\t<li><a href=\"http://www.oschina.net/question/166022_24392\" title=\"ComboGrid怎么动态绑定ds呢?\">ComboGrid怎么动态绑定ds呢?</a><span class='date'>(2回/427阅,1年前)</span></li>\t\t\t\t\t\t<li><a href=\"http://www.oschina.net/question/146658_24974\" title=\"easyui中怎么显示一个list的数据?\">easyui中怎么显示一个list的数据?</a><span class='date'>(1回/594阅,1年前)</span></li>\t\t\t\t\t\t<li><a href=\"http://www.oschina.net/question/97507_26165\" title=\"jquery easyui 組件無法顯示\">jquery easyui 組件無法顯示</a><span class='date'>(2回/671阅,1年前)</span></li>\t\t\t\t\t\t<li><a href=\"http://www.oschina.net/question/46586_16818\" title=\"关于jQuery EasyUI Form的问题\">关于jQuery EasyUI Form的问题</a><span class='date'>(2回/1103阅,2年前)</span></li>\t\t\t\t\t\t<li><a href=\"http://www.oschina.net/question/59256_17359\" title=\"jquery easyUI \">jquery easyUI </a><span class='date'>(1回/557阅,2年前)</span></li>\t\t\t\t\t\t<li><a href=\"http://www.oschina.net/question/188775_77569\" title=\"easyui中有没有点击datagrid的一个单元格 ,就使这个单元格变成可编辑的办法呢 \">easyui中有没有点击datagrid的一个单元格 ,就使这个单元格变成可编辑的办法呢 </a><span class='date'>(1回/890阅,5个月前)</span></li>\t\t\t\t\t\t<li><a href=\"http://www.oschina.net/question/256315_79207\" title=\"jQuery easyui:点击tree控件后无法获取node属性\">jQuery easyui:点击tree控件后无法获取node属性</a><span class='date'>(3回/533阅,5个月前)</span></li>\t\t\t\t\t\t<li><a href=\"http://www.oschina.net/question/580112_79227\" title=\"EasyUI 中tab标签的选项卡 置于左边是怎么实现的\">EasyUI 中tab标签的选项卡 置于左边是怎么实现的</a><span class='date'>(5回/426阅,5个月前)</span></li>\t\t\t\t\t\t<li><a href=\"http://www.oschina.net/question/868642_79423\" title=\"easyui无法跳转到 指定action 各位帮忙看看哪里有问题么?\">easyui无法跳转到 指定action 各位帮忙看看哪里有问题么?</a><span class='date'>(2回/162阅,5个月前)</span></li>\t\t\t\t\t\t</ul>\n"
416 + "\t\t</div>\n"
417 + "\t</div>\n"
418 + "\t<div class='clear'></div> \n"
419 + "</div>\n"
420 + "<script type='text/javascript' src='/js/ke/kindeditor-min.js?v=4.1.4' charset='utf-8'></script>\n"
421 + "<script type='text/javascript'>\n"
422 + "<!--\n"
423 + "var editor;\n"
424 + "KindEditor.ready(function(K) {\n"
425 + " editor = K.create('#txt_answner', {\n"
426 + "\t\tthemeType : 'oschina',\n"
427 + "\t\tresizeType : 1,\n"
428 + "\t\turlType: 'domain',\n"
429 + "\t\tshadowMode : false,\n"
430 + "\t\tallowPreviewEmoticons : false,\n"
431 + "\t\tallowImageUpload : true,\n"
432 + "\t\tallowFlashUpload : false,\n"
433 + "\t\tcssPath : '/css/ke-oschina.css',\n"
434 + "\t\tuploadJson : '/action/blog/upload_img',\n"
435 + "\t\tafterCreate : function(){\n"
436 + "\t\t\t/*\n"
437 + "\t\t\tK.ctrl(this.edit.iframe.get(0).contentWindow.document, 13, function() {\n"
438 + "\t\t\t\t$(\"#txt_answner\").parent().submit();\n"
439 + "\t\t\t});\n"
440 + "\t\t\t*/\n"
441 + "\t\t\t$(this.edit.iframe.get(0).contentWindow.document).keydown(function(e) {\n"
442 + "\t\t\t\tif ((e.ctrlKey || e.metaKey) && e.which == 13 && !e.shiftKey && !e.altKey){\n"
443 + "\t\t\t\t\t$(\"#txt_answner\").parent().submit();\n"
444 + "\t\t\t\t}\n"
445 + "\t\t\t});\n"
446 + "\t\t},\n"
447 + "\t\tafterChange : function() {\n"
448 + "\t\t\tthis.sync();\n"
449 + "\t\t},\n"
450 + "\t\titems : ['bold', 'italic', 'underline', 'strikethrough', 'removeformat','|','insertorderedlist', 'insertunorderedlist', \n"
451 + "\t\t\t\t 'forecolor', 'hilitecolor', 'fontname', 'fontsize', '|', 'link', 'unlink', 'emoticons', \n"
452 + "\t\t\t\t 'shcode', 'image', 'flash', 'quote', '|', 'source','about'],\n"
453 + "\t\thtmlTags:\n"
454 + "\t\t{\n"
455 + "\t\t\tscript : ['src'],\n"
456 + " font : ['color', 'size', 'face', '.background-color'],\n"
457 + " span : [\n"
458 + " '.color', '.background-color', '.font-size', '.font-family', '.background',\n"
459 + " '.font-weight', '.font-style', '.text-decoration', '.vertical-align', '.line-height'\n"
460 + " ],\n"
461 + " div : [\n"
462 + " 'class', 'align', '.border', '.margin', '.padding', '.text-align', '.color',\n"
463 + " '.background-color', '.font-size', '.font-family', '.font-weight', '.background',\n"
464 + " '.font-style', '.text-decoration', '.vertical-align', '.margin-left'\n"
465 + " ],\n"
466 + " table: [\n"
467 + " 'border', 'cellspacing', 'cellpadding', 'width', 'height', 'align', 'bordercolor',\n"
468 + " '.padding', '.margin', '.border', 'bgcolor', '.text-align', '.color', '.background-color',\n"
469 + " '.font-size', '.font-family', '.font-weight', '.font-style', '.text-decoration', '.background',\n"
470 + " '.width', '.height', '.border-collapse'\n"
471 + " ],\n"
472 + " 'td,th': [\n"
473 + " 'align', 'valign', 'width', 'height', 'colspan', 'rowspan', 'bgcolor',\n"
474 + " '.text-align', '.color', '.background-color', '.font-size', '.font-family', '.font-weight',\n"
475 + " '.font-style', '.text-decoration', '.vertical-align', '.background', '.border'\n"
476 + " ],\n"
477 + " a : ['href', 'target', 'name'],\n"
478 + " embed : ['src', 'width', 'height', 'type', 'loop', 'autostart', 'quality', '.width', '.height', 'align', 'allowscriptaccess'],\n"
479 + " img : ['src', 'width', 'height', 'border', 'alt', 'title', 'align', '.width', '.height', '.border'],\n"
480 + " 'p,ol,ul,li,blockquote,h1,h2,h3,h4,h5,h6' : [\n"
481 + " 'align', '.text-align', '.color', '.background-color', '.font-size', '.font-family', '.background',\n"
482 + " '.font-weight', '.font-style', '.text-decoration', '.vertical-align', '.text-indent', '.margin-left'\n"
483 + " ],\n"
484 + " pre : ['class'],\n"
485 + " hr : ['class', '.page-break-after'],\n"
486 + " 'br,tbody,tr,strong,b,sub,sup,em,i,u,strike,s,del' : []\n"
487 + "\t\t}\n"
488 + " });\n"
489 + "});\n"
490 + "//-->\n"
491 + "</script>\n"
492 + "<!--[if lt IE 7]>\n"
493 + "<script type=\"text/javascript\" src=\"/js/minmax.js\"></script>\n"
494 + "<![endif]-->\n"
495 + "<script type=\"text/javascript\" src=\"/action/visit/question?id=107307\"></script>\n"
496 + "<script type='text/javascript'>\n"
497 + "<!--\n"
498 + "$(document).ready(function() {\n"
499 + "\t$('.Answer .replies li').hover(\n"
500 + "\t\tfunction(){$(this).addClass('hover');},\n"
501 + "\t\tfunction(){$(this).removeClass('hover');}\n"
502 + "\t);\t\n"
503 + "\t\n"
504 + " $('.detail img').css('cursor','pointer');\n"
505 + " jQuery.each($('.detail img'),function(idx,v){\n"
506 + " \t$(v).wrap(\"<a href='\"+$(this).attr('src')+\"' target='_blank'></a>\");\n"
507 + " });\n"
508 + "\t\n"
509 + "\t$('#c').bind('mouseover mouseout',function(){\n"
510 + "\t\t$('#c_on').toggle();\n"
511 + "\t\t$('#c_off').toggle();\n"
512 + "\t});\n"
513 + "\t\n"
514 + "\t$('#favor_trigger').click(function(){\n"
515 + "\t\t\tadd_to_favor(107307,2);\n"
516 + "\t\t});\n"
517 + "});\n"
518 + "function ask_too(qid, ask){\n"
519 + "\tajax_post(\"/action/question/ask_too?id=\"+qid+\"&ask=\"+ask,\"\",function(html){\n"
520 + "\t\tjson = eval('('+html+')');\n"
521 + "\t\tif(json.asker_count >= 0){\n"
522 + "\t\t\t$('#c_asker_count').html(json.asker_count);\n"
523 + "\t\t\tif(json.ask_mode)\n"
524 + "\t\t\t\t$('#RQuestionAction').html(\"<span class='rect'>已问同一问题 | <a href='javascript:ask_too(107307,false)'>取消?</a></span>\");\n"
525 + "\t\t\telse\n"
526 + "\t\t\t\t$('#RQuestionAction').html(\"<a href='javascript:ask_too(107307,true)' class='rndbutton'><span>我想问同样的问题</span></a>\");\t\t\t\n"
527 + "\t\t}\n"
528 + "\t\telse{\n"
529 + "\t\t\t$('#RQuestionAction').poshytip({\n"
530 + "\t\t\t\tclassName: 'tip-yellowsimple',\n"
531 + "\t\t\t\tcontent: json.msg,\n"
532 + "\t\t\t\tshowOn: 'none',\n"
533 + "\t\t\t\talignTo: 'target',\n"
534 + "\t\t\t\talignX: 'center',\n"
535 + "\t\t\t\talignY: 'top',\n"
536 + "\t\t\t\toffsetY: 6\n"
537 + "\t\t\t});\n"
538 + "\t\t\t$('#RQuestionAction').poshytip('show');\n"
539 + "\t\t\tvar t = setTimeout(function(){\n"
540 + "\t\t\t\tclearTimeout(t);\n"
541 + "\t\t\t\t$('#RQuestionAction').poshytip('destroy');\n"
542 + "\t\t\t},4000);\n"
543 + "\t\t}\n"
544 + "\t});\n"
545 + "}\n"
546 + "function delete_q(qid){\n"
547 + "\tif(!confirm(\"您确认要删除此问题吗,删除的数据不可恢复?\"))\n"
548 + "\t\treturn ;\n"
549 + "\t\tajax_post(\"/action/question/delete?id=\"+qid+\"&hash=-500641190\",\"\",function(html){\n"
550 + "\t\tif(html.length>0)\n"
551 + "\t\t\talert(html);\n"
552 + "\t\telse{\n"
553 + "\t\t\tlocation.href = \"/question\";\n"
554 + "\t\t}\n"
555 + "\t});\n"
556 + "}\n"
557 + "function edit_answer(aid){\n"
558 + "\tlocation.href=\"/question/edit_answer?id=\"+aid;\n"
559 + "}\n"
560 + "function delete_answer(aid,hash){\n"
561 + "\tif(!confirm(\"您确认要删除此答案吗,删除的数据不可恢复?\"))\n"
562 + "\t\treturn ;\n"
563 + "\tajax_post(\"/action/question/delete_answer?id=\"+aid+\"&hash=\"+hash,\"\",function(html){\n"
564 + "\t\tif(html.length>0)\n"
565 + "\t\t\talert(html);\n"
566 + "\t\telse{\n"
567 + "\t\t\t$('#answer_'+aid).fadeOut();\n"
568 + "\t\t}\n"
569 + "\t});\n"
570 + "}\n"
571 + "function delete_post_reply(aid,hash){\n"
572 + "\tif(!confirm(\"您确认要删除此评论吗,删除的数据不可恢复?\"))\n"
573 + "\t\treturn ;\n"
574 + "\tajax_post(\"/action/question/delete_answer?id=\"+aid+\"&hash=\"+hash,\"\",function(html){\n"
575 + "\t\tif(html.length>0)\n"
576 + "\t\t\talert(html);\n"
577 + "\t\telse{\n"
578 + "\t\t\t$('#PostReply_'+aid).fadeOut();\n"
579 + "\t\t}\n"
580 + "\t});\n"
581 + "}\n"
582 + "function delete_q_rpl(qid, rid){\n"
583 + "\tif(!confirm(\"删除补充说明会被扣威望值,是否继续?\"))\n"
584 + "\t\treturn ;\n"
585 + "\tajax_post(\"/action/question/delete_detail?id=\"+rid,\"\",function(html){\n"
586 + "\t\tif(html.length>0)\n"
587 + "\t\t\talert(html);\n"
588 + "\t\telse\n"
589 + "\t\t\t$(\"#q_reply_\"+rid).fadeOut();\n"
590 + "\t});\n"
591 + "}\n"
592 + "function close_tip(tid){$('#'+tid).poshytip('destroy');}\n"
593 + "//答案投票\n"
594 + "function vote_answer(qid, vote_up, need_confirm){\n"
595 + "\tif(need_confirm && !vote_up){\n"
596 + "\t\tif(!$('#a_post_votedown_' + qid).hasClass('bold')){\n"
597 + "\t\t\tvar vote_down_confirm_msg = \"<p>此操作将会扣掉你1个积分,是否继续?</p><p style='margin-top:10px;'><a href='javascript:vote_answer(\"+qid+\",false,false)' class='rbtn' style='margin:0 10px 0 50px;'><span>确定</span></a><a href=\\\"javascript:close_tip('a_post_votedown_\" + qid +\"')\\\" class='rbtn'><span>取消</span></a></p>\";\t\t\t\n"
598 + "\t\t\t$('#a_post_votedown_' + qid).poshytip({\n"
599 + "\t\t\t\tclassName: 'tip-yellowsimple',\n"
600 + "\t\t\t\tcontent: vote_down_confirm_msg,\n"
601 + "\t\t\t\tshowOn: 'none',\n"
602 + "\t\t\t\tslide: false,\n"
603 + "\t\t\t\tfade: false,\n"
604 + "\t\t\t\talignTo: 'target',\n"
605 + "\t\t\t\talignX: 'center',\n"
606 + "\t\t\t\toffsetY: 8\n"
607 + "\t\t\t});\n"
608 + "\t\t\t$('#a_post_votedown_' + qid).poshytip('show');\n"
609 + "\t\t\treturn;\n"
610 + "\t\t}\n"
611 + "\t}\n"
612 + "\tif(!need_confirm){\n"
613 + "\t\t$('#a_post_votedown_' + qid).poshytip('destroy');\n"
614 + "\t}\n"
615 + "\tajax_post(\"/action/question/vote_answer?id=\"+qid+\"&vote=\"+vote_up+\"&user=190591\",\"\",function(data){\n"
616 + "\t\tjson = eval('('+data+')');\n"
617 + "\t\tif(json.msg){\n"
618 + "\t\t\tvar aid = vote_up?\"a_post_voteup_\":\"a_post_votedown_\";\n"
619 + "\t\t\taid += qid;\n"
620 + "\t\t\t$('#'+aid).poshytip({\n"
621 + "\t\t\t\tclassName: 'tip-yellowsimple',\n"
622 + "\t\t\t\tcontent: json.msg,\n"
623 + "\t\t\t\tshowOn: 'none',\n"
624 + "\t\t\t\talignTo: 'target',\n"
625 + "\t\t\t\talignX: 'center',\n"
626 + "\t\t\t\talignY: 'top',\n"
627 + "\t\t\t\toffsetY: 6\n"
628 + "\t\t\t});\n"
629 + "\t\t\t$('#'+aid).poshytip('show');\n"
630 + "\t\t\tvar t = setTimeout(function(){\n"
631 + "\t\t\t\tclearTimeout(t);\n"
632 + "\t\t\t\t$('#'+aid).poshytip('destroy');\n"
633 + "\t\t\t},2000);\n"
634 + "\t\t\t//jQuery.fancybox(\"<div class='error_box'>\"+json.msg+\"</div>\");\n"
635 + "\t\t}\n"
636 + "\t\telse{\n"
637 + "\t\t\tif(vote_up){\n"
638 + "\t\t\t\t$('#post_voteup_'+qid).html('('+json.vote+')');\n"
639 + "\t\t\t\t$('#a_post_voteup_'+qid).toggleClass('bold');\n"
640 + "\t\t\t}\n"
641 + "\t\t\telse{\n"
642 + "\t\t\t\t$('#post_votedown_'+qid).html('('+json.vote+')');\n"
643 + "\t\t\t\t$('#a_post_votedown_'+qid).toggleClass('bold');\n"
644 + "\t\t\t}\n"
645 + "\t\t}\n"
646 + "\t});\n"
647 + "}\n"
648 + "//问题投票 \n"
649 + "$('#vote_up').click(function(){\n"
650 + "\tif(this.clickTimeout){\n"
651 + " // 双击\n"
652 + " clearTimeout(this.clickTimeout);\n"
653 + " this.clickTimeout = null;\n"
654 + "\t\talert(\"不用那么费劲啦,点击一下就够了:)\");\n"
655 + " }\n"
656 + " else{\n"
657 + " // 单击\n"
658 + " var elem = this;\n"
659 + " this.clickTimeout = setTimeout(function(){\n"
660 + " // 执行点击动作\n"
661 + " elem.clickTimeout = null;\n"
662 + "\t\t\tvote_question(107307,true, true);\n"
663 + " }, 250);\n"
664 + " }\n"
665 + " //阻止链接onclick时的默认行为\n"
666 + " return false;\n"
667 + "});\n"
668 + "$('#vote_down').click(function(){\n"
669 + "\tvote_question(107307,false, true);\n"
670 + "\t/*\n"
671 + "\tif(this.clickTimeout){\n"
672 + " // 双击\n"
673 + " clearTimeout(this.clickTimeout);\n"
674 + " this.clickTimeout = null;\n"
675 + "\t\talert(\"不用那么费劲啦,点击一下就够了:)\");\n"
676 + " }\n"
677 + " else{\n"
678 + " // 单击\n"
679 + " var elem = this;\n"
680 + " this.clickTimeout = setTimeout(function(){\n"
681 + " // 执行点击动作\n"
682 + " elem.clickTimeout = null;\n"
683 + "\t\t\tvote_question(107307,false, true);\n"
684 + " }, 250);\n"
685 + " }\n"
686 + " //阻止链接onclick时的默认行为\n"
687 + "\t*/\n"
688 + " return false;\n"
689 + "});\n"
690 + "function vote_question(qid, vote_up, need_confirm){\n"
691 + "\tif(need_confirm && !vote_up){\n"
692 + "\t\tif($('#Vote #vote_down').hasClass('ask_vote_down')){\n"
693 + "\t\t\tvar vote_down_confirm_msg = \"<p>踩问题将会扣掉你1个积分,是否继续?</p><p style='margin-top:10px;'><a href='javascript:vote_question(107307,false,false)' class='rbtn' style='margin-right:10px;'><span>确定</span></a><a href=\\\"javascript:close_tip('vote_down')\\\" class='rbtn'><span>取消</span></a></p>\";\n"
694 + "\t\t\t$('#Vote #vote_down').poshytip({\n"
695 + "\t\t\t\tclassName: 'tip-yellowsimple',\n"
696 + "\t\t\t\tcontent: vote_down_confirm_msg,\n"
697 + "\t\t\t\tslide: false,\n"
698 + "\t\t\t\tfade: false,\n"
699 + "\t\t\t\tshowOn: 'none',\n"
700 + "\t\t\t\talignTo: 'target',\n"
701 + "\t\t\t\talignX: 'inner-right',\n"
702 + "\t\t\t\talignY: 'bottom',\n"
703 + "\t\t\t\toffsetX: -30,\n"
704 + "\t\t\t\toffsetY: 15\n"
705 + "\t\t\t});\n"
706 + "\t\t\t$('#Vote #vote_down').poshytip('show');\n"
707 + "\t\t\treturn;\n"
708 + "\t\t}\n"
709 + "\t}\n"
710 + "\tif(!need_confirm){\n"
711 + "\t\t$('#Vote #vote_down').poshytip('destroy');\n"
712 + "\t}\n"
713 + "\tajax_post(\"/action/question/vote?user=190591&id=\"+qid+\"&vote=\"+vote_up,\"\",function(data){\n"
714 + "\t\tjson = eval('('+data+')');\n"
715 + "\t\tif(json.msg){\n"
716 + "\t\t\tvar aid = vote_up?\"vote_up\":\"vote_down\";\n"
717 + "\t\t\t$('#'+aid).poshytip({\n"
718 + "\t\t\t\tclassName: 'tip-yellowsimple',\n"
719 + "\t\t\t\tcontent: json.msg,\n"
720 + "\t\t\t\tshowOn: 'none',\n"
721 + "\t\t\t\talignTo: 'target',\n"
722 + "\t\t\t\talignX: 'inner-right',\n"
723 + "\t\t\t\talignY: 'bottom',\n"
724 + "\t\t\t\toffsetX: 5,\n"
725 + "\t\t\t\toffsetX: -35\n"
726 + "\t\t\t});\n"
727 + "\t\t\t$('#'+aid).poshytip('show');\n"
728 + "\t\t\tvar t = setTimeout(function(){\n"
729 + "\t\t\t\tclearTimeout(t);\n"
730 + "\t\t\t\t$('#'+aid).poshytip('destroy');\n"
731 + "\t\t\t},2000);\n"
732 + "\t\t}\n"
733 + "\t\telse{\n"
734 + "\t\t\t\t\t\tif(vote_up){\n"
735 + "\t\t\t\t$('#Vote .vote-up-count').html(json.vote_up);\n"
736 + "\t\t\t\t$('#Vote #vote_up').toggleClass('ask_vote_up');\n"
737 + "\t\t\t\t$('#Vote #vote_up').toggleClass('ask_vote_uped');\n"
738 + "\t\t\t}\n"
739 + "\t\t\telse{\n"
740 + "\t\t\t\t$('#Vote .vote-down-count').html(json.vote_down);\n"
741 + "\t\t\t\t$('#Vote #vote_down').toggleClass('ask_vote_down');\n"
742 + "\t\t\t\t$('#Vote #vote_down').toggleClass('ask_vote_downed');\n"
743 + "\t\t\t}\n"
744 + "\t\t}\n"
745 + "\t});\n"
746 + "}\n"
747 + "//评论答案\n"
748 + "function reply_to_post(postid,uid){\n"
749 + "\tpopup(\"/action/ajax/reply_to_post?id=\" + postid + \"&refer=\"+uid);\n"
750 + "\t}\n"
751 + "\n"
752 + "function show_rp_next(postid,current,total){\n"
753 + "\tif(current < total){\n"
754 + "\t\tvar next_page = current + 1;\n"
755 + " \tvar url = \"/question/post_replies?answer=\"+postid+\"&rp=\"+next_page;\n"
756 + " \tajax_post(url,\"\",function(html){\n"
757 + " \t\t$('#PostReplies_'+postid).html(html);\n"
758 + "\t\t\t\taddRepliesHoverEvent();\n"
759 + "\t\t\t});\n"
760 + "\t}\n"
761 + "}\n"
762 + "\n"
763 + "function addRepliesHoverEvent(){\n"
764 + "\t$(\"li [id ^= 'PostReply']\").hover(function(){\n"
765 + "\t\t$(this).addClass(\"hover\");\n"
766 + "\t},function(){\n"
767 + "\t\t$(this).removeClass(\"hover\");\n"
768 + "\t});\n"
769 + "}\n"
770 + "\n"
771 + "function show_rp_prev(postid,current,total){\n"
772 + "\tif(current > 1){\n"
773 + "\t\tvar next_page = current - 1;\n"
774 + " \tvar url = \"/question/post_replies?answer=\"+postid+\"&rp=\"+next_page;\n"
775 + " \tajax_post(url,\"\",function(html){\n"
776 + " \t\t$('#PostReplies_'+postid).html(html);\n"
777 + "\t\t\taddRepliesHoverEvent();\n"
778 + " \t});\n"
779 + "\t}\n"
780 + "}\n"
781 + "function mark_as_top(qid, as_top) {\n"
782 + "\tvar args = \"id=\"+qid+\"&top=\"+as_top;\n"
783 + "\tajax_post(\"/action/question/mark_as_top\",args,function(html){\n"
784 + "\t\talert(html);\n"
785 + "\t});\n"
786 + "}\n"
787 + "function mark_as_best(postid, is_best){\n"
788 + "\tvar args = \"id=\"+postid+\"&best=\"+(is_best?1:0);\n"
789 + "\tajax_post(\"/action/question/mark_as_best\",args,function(html){\n"
790 + " \tif(html.length>0){\n"
791 + " \t\t$('#best_answer_'+postid).poshytip({\n"
792 + " \t\t\tclassName: 'tip-yellowsimple',\n"
793 + " \t\t\tcontent: html,\n"
794 + " \t\t\tshowOn: 'none',\n"
795 + " \t\t\talignTo: 'target',\n"
796 + " \t\t\talignX: 'center',\n"
797 + " \t\t\talignY: 'top',\n"
798 + " \t\t\toffsetY: 6\n"
799 + " \t\t});\n"
800 + " \t\t$('#best_answer_'+postid).poshytip('show');\n"
801 + " \t\tvar t = setTimeout(function(){\n"
802 + " \t\t\tclearTimeout(t);\n"
803 + " \t\t\t$('#best_answer_'+postid).poshytip('destroy');\n"
804 + " \t\t},2000);\n"
805 + " \t}\n"
806 + " \telse{\n"
807 + "\t\t\tif(is_best)\n"
808 + "\t\t\t\t$('#answer_'+postid).addClass('Best');\n"
809 + "\t\t\telse\n"
810 + "\t\t\t\t$('#answer_'+postid).removeClass('Best');\n"
811 + " \t}\n"
812 + "\t});\n"
813 + "}\n"
814 + "function edit_tags(qid){\n"
815 + "\tpopup(\"/question/edit_tags?question=\"+qid);\n"
816 + "}\n"
817 + "function edit_catalogs(qid){\n"
818 + "\tpopup(\"/admin/catalog/set-catalogs?parent=1&type=2&id=\"+qid);\n"
819 + "}\n"
820 + "function event_apply(event_id){\t\n"
821 + "\tpopup(\"/action/ajax/event_apply\",\"id=\"+event_id);\n"
822 + "}\n"
823 + "function cancel_apply(event_id){\n"
824 + "\tif(confirm(\"您确认要取消参加此次活动吗?\")){\n"
825 + "\t\tajax_post(\"/action/event/cancel\",\"event=\"+event_id,function(html){\n"
826 + "\t\t\tif(html.length>0)\n"
827 + "\t\t\t\talert(html);\n"
828 + "\t\t\telse\n"
829 + "\t\t\t\talert('已取消参加此次活动,感谢您的支持:)');\n"
830 + "\t\t});\n"
831 + "\t}\n"
832 + "}\n"
833 + "\n"
834 + "var favor_ok = \"<p class='favor_ok'>已成功添加到收藏夹<br><br> <a href='http://my.oschina.net/flashsword/favorites?type=$DAISY_OBJ_TYPE'>我的收藏夹</a> | <a href='javascript:close_favor()'>关闭</a></p>\";\n"
835 + "function delete_favor(obi_id, obj_type){\n"
836 + "\tif(!confirm('确定取消收藏?')) return;\n"
837 + "\t$.post(\"/action/favorite/cancel?type=\"+obj_type+\"&id=\"+obi_id+\"&user=190591\",function(html){\n"
838 + "\t\t$('#favor_trigger').parent('div').removeClass('ask_collected').addClass('ask_collect');\n"
839 + "\t\t$('#favor_trigger').attr('title','添加到收藏');\n"
840 + " \t$('#p_favor_count').html(html);\n"
841 + "\t\t$('#favor_trigger').unbind('click');\n"
842 + "\t\t$('#favor_trigger').click(function(){add_to_favor(107307,2);});\n"
843 + "\t});\n"
844 + "}\n"
845 + "function add_to_favor(obj_id, obj_type){\n"
846 + " var dlg_favor = \"<div id='favor_form'><p>多个标签使用逗号(,)隔开,最多三个</p><form action='/action/favorite/add?user=190591' height='60px' width='200px' method='POST'>\";\n"
847 + "\tdlg_favor += \"<input type='hidden' name='id' value='\"+obj_id+\"'/>\";\n"
848 + "\tdlg_favor += \"<input type='hidden' name='type' value='\"+obj_type+\"'/>\";\n"
849 + "\tdlg_favor += \"<input type='text' name='tags' size='25' class='_favor_input' id='_favor_tags'/>\";\n"
850 + "\tdlg_favor += \"<input type='submit' value='收藏' class='_favor_button'/><input type='button' value='取消' onclick='close_favor();' class='_favor_button'/><a id='TagsSwitcher' state='off'>选取标签↓</a></form>\";\n"
851 + "\tdlg_favor += \"<div id='MyTags' ></div></div>\";\n"
852 + " $('#favor_trigger').poshytip('destroy');\n"
853 + " $('#favor_trigger').poshytip({\n"
854 + " \tclassName: 'tip-yellowsimple',\n"
855 + " \tcontent: dlg_favor,\n"
856 + " \tshowOn: 'none',\n"
857 + " \talignTo: 'target',\t\n"
858 + "\t\talignX: 'inner-right',\n"
859 + "\t\talignY: 'bottom',\n"
860 + "\t\toffsetX: -20,\n"
861 + "\t\toffsetY: 15\n"
862 + " });\n"
863 + " $('#favor_trigger').poshytip('show');\n"
864 + "\t$('#_favor_tags').focus();\n"
865 + "\t$('#favor_form form').ajaxForm({\n"
866 + "\t\tsuccess: function(html) {\n"
867 + "\t\t\t$('#favor_trigger').parent('div').removeClass('ask_collect').addClass('ask_collected');\n"
868 + "\t\t\t$('#favor_trigger').attr('title','取消收藏');\n"
869 + "\t\t\t$('#p_favor_count').html(html);\n"
870 + "\t\t\t$('#favor_trigger').unbind('click');\n"
871 + "\t\t\t$('#favor_trigger').click(function(){delete_favor(107307,2);});\n"
872 + "\t\t\t$('#favor_form').html(favor_ok);\n"
873 + "\t\t\tsetTimeout(\"close_favor()\",3000);\n"
874 + "\t\t}\n"
875 + "\t});\n"
876 + "\t$(\"#TagsSwitcher\").one(\"click\",function(){\n"
877 + "\t\t//加载标签数据\n"
878 + "\t\t$(\"#MyTags\").load('/action/ajax/get_my_tags');\n"
879 + " \t$(\"#MyTags\").toggle();\n"
880 + "\t\t$(this).html(\"收起标签↑\");\n"
881 + " $(this).attr(\"state\",'on');\n"
882 + " $(this).click(function(){\n"
883 + " \t$(\"#MyTags\").toggle();\n"
884 + " \tvar state = $(this).attr(\"state\");\n"
885 + " \tif(state=='off'){\n"
886 + " \t\t$(this).html(\"收起标签↑\");\n"
887 + " \t\t$(this).attr(\"state\",'on');\n"
888 + " \t}else{\n"
889 + " \t\t$(this).html(\"选取标签↓\");\n"
890 + " \t\t$(this).attr(\"state\",'off');\n"
891 + " \t}\n"
892 + " });\n"
893 + "\t});\n"
894 + "\n"
895 + "}\n"
896 + "function close_favor(elem_id){\n"
897 + " $('#favor_trigger').poshytip('destroy');\n"
898 + "}\n"
899 + "function setTag(tv){\n"
900 + "\tvar t = $(\"._favor_input\");\n"
901 + "\tvar value = t.val();\n"
902 + "\tif(value!=\"\")\n"
903 + "\t\tt.val(value+\",\"+tv);\n"
904 + "\telse\n"
905 + "\t\tt.val(tv)\n"
906 + "}\n"
907 + "//-->\n"
908 + "</script><div class='clear'></div></div>\n"
909 + "\t<div id=\"OSC_Footer\" class='CenterDiv'><style>\n"
910 + ".oscapp {text-align:left; width:220px;}\n"
911 + ".oscapp span {float:left;width:140px;}\n"
912 + ".oscapp a {float:left;text-indent:-9999em;width:16px;margin-left:8px;}\n"
913 + ".oscapp a.android {background:url('/img/android.gif') no-repeat left center;}\n"
914 + ".oscapp a.iphone {background:url('/img/iphone.gif') no-repeat left center;}\n"
915 + ".oscapp a.wp7 {background:url('/img/wp7.gif') no-repeat left center;}\n"
916 + "</style>\n"
917 + "<table width='100%'><tr>\n"
918 + "<td align='left'>© 开源中国(OsChina.NET) | <a href=\"http://www.oschina.net/home/about\">关于我们</a> | <a href=\"mailto:oschina.net@gmail.com\">广告联系</a> | <a href=\"http://weibo.com/oschina2010\" target=\"_blank\">@新浪微博</a> | <a href=\"http://m.oschina.net/\">开源中国手机版</a> | <a href='http://www.miitbeian.gov.cn/' target='_blank' style='color:#737573;text-decoration:none;'>粤ICP备12009483号-3</a></td>\n"
919 + "<td class='oscapp'>\n" + "\t<span>开源中国手机客户端:</span>\n"
920 + "\t<a href=\"http://www.oschina.net/app\" class='android' title='Android客户端'>Android</a>\n"
921 + "\t<a href=\"http://www.oschina.net/app\" class='iphone' title='iPhone 客户端'>iPhone</a>\n"
922 + "\t<a href=\"http://www.oschina.net/app\" class='wp7' title='Windows Phone 客户端'>WP7</a>\n" + "</td>\n"
923 + "</tr>\n" + "</table>\n" + "<script type='text/javascript'>\n" + "<!--\n"
924 + "if (top.location != self.location)top.location=self.location;\n" + "//-->\n" + "</script></div>\n"
925 + "</div>\n" + "</body>\n" + "</html>\n"
926 + "<!-- Generated by OsChina.NET (init:1[ms],page:43[ms],ip:60.55.11.77) -->";
927
928 @Test
929 public void test() {
930 String text = "\n"
931 + "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n"
932 + "<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"zh-CN\" dir=\"ltr\">\n"
933 + " <head>\n"
934 + " <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"/>\n"
935 + " <title>jsoup 解析页面商品信息 - - ITeye技术网站</title>\n"
936 + " <meta name=\"description\" content=\"今天用了jsoup 解析页面商品信息,感觉比用xpath获取信息准确多了 下面就记录一下: 一、首先去 http://jsoup.org/download 下载jsoup的jar包。 二、下面记录下相关代码: Document doc = Jsoup.connect(url).get(); //将htm转换成Document类型数据结构 ...\" />\n"
937 + " <meta name=\"keywords\" content=\" jsoup 解析页面商品信息\" />\n"
938 + " <link rel=\"shortcut icon\" href=\"/images/favicon.ico\" type=\"image/x-icon\" />\n"
939 + " <link rel=\"search\" type=\"application/opensearchdescription+xml\" href=\"/open_search.xml\" title=\"ITeye\" />\n"
940 + " <link href=\"/rss\" rel=\"alternate\" title=\"\" type=\"application/rss+xml\" />\n"
941 + " <link href=\"http://www.iteye.com/stylesheets/blog.css?1365750118\" media=\"screen\" rel=\"stylesheet\" type=\"text/css\" />\n"
942 + "<link href=\"http://www.iteye.com/stylesheets/themes/blog/blue.css?1326191326\" media=\"screen\" rel=\"stylesheet\" type=\"text/css\" />\n"
943 + " <script src=\"http://www.iteye.com/javascripts/application.js?1358214518\" type=\"text/javascript\"></script>\n"
944 + " <script type=\"text/javascript\">\n"
945 + "\n"
946 + " var _gaq = _gaq || [];\n"
947 + " _gaq.push(['_setAccount', 'UA-535605-1']);\n"
948 + " _gaq.push(['_setDomainName', 'iteye.com']);\n"
949 + " _gaq.push(['_trackPageview']);\n"
950 + "\n"
951 + " (function() {\n"
952 + " var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;\n"
953 + " ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';\n"
954 + " var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);\n"
955 + " })();\n"
956 + "\n"
957 + "</script>\n"
958 + "\n"
959 + "\n"
960 + " <link href=\"http://www.iteye.com/javascripts/syntaxhighlighter/SyntaxHighlighter.css?1348819953\" media=\"screen\" rel=\"stylesheet\" type=\"text/css\" />\n"
961 + " <script src=\"http://www.iteye.com/javascripts/syntaxhighlighter/shCoreCommon.js?1325907333\" type=\"text/javascript\"></script>\n"
962 + "<script src=\"http://www.iteye.com/javascripts/hotkey.js?1324994303\" type=\"text/javascript\"></script>\n"
963 + " <script src=\"http://www.iteye.com/javascripts/code_favorites.js?1358214518\" type=\"text/javascript\"></script>\n"
964 + "<script src=\"http://www.iteye.com/javascripts/weiboshare.js?1324994303\" type=\"text/javascript\"></script>\n"
965 + " <link href=\"http://www.iteye.com/javascripts/editor/css/ui.css?1324994303\" media=\"screen\" rel=\"stylesheet\" type=\"text/css\" />\n"
966 + " <script src=\"http://www.iteye.com/javascripts/editor/compress.js?1358129160\" type=\"text/javascript\"></script>\n"
967 + " </head>\n"
968 + " <body>\n"
969 + " <div id=\"header\">\n"
970 + " <div id=\"blog_site_nav\">\n"
971 + " <a href=\"http://www.iteye.com/\" class=\"homepage\">首页</a>\n"
972 + " <a href=\"http://www.iteye.com/news\">资讯</a>\n"
973 + " <a href=\"http://www.iteye.com/magazines\">精华</a>\n"
974 + " <a href=\"http://www.iteye.com/forums\">论坛</a>\n"
975 + " <a href=\"http://www.iteye.com/ask\">问答</a>\n"
976 + " <a href=\"http://www.iteye.com/blogs\">博客</a>\n"
977 + " <a href=\"http://www.iteye.com/blogs/subjects\">专栏</a>\n"
978 + " <a href=\"http://www.iteye.com/groups\">群组</a>\n"
979 + " <a href=\"#\" onclick=\"return false;\" id=\"msna\"><u>更多</u> <small>▼</small></a>\n"
980 + " <div class=\"quick_menu\" style=\"display:none;\">\n"
981 + " <a target=\"_blank\" href=\"http://job.iteye.com/iteye\">招聘</a>\n"
982 + " <a href=\"http://www.iteye.com/search\">搜索</a>\n"
983 + " </div>\n"
984 + "</div>\n"
985 + "\n"
986 + " <div id=\"user_nav\">\n"
987 + " \n"
988 + " <a href=\"http://flashsword20.iteye.com\" title=\"查看我的博客首页\" class=\"welcome\">欢迎flashsword20</a>\n"
989 + " <a id=\"notifications_count\" href=\"http://my.iteye.com/notifications\">0</a>\n"
990 + " \n"
991 + " <a href=\"http://my.iteye.com/messages\" title=\"你有新的站内短信\"><img alt=\"Newpm\" src=\"http://www.iteye.com/images/newpm.gif?1324994303\" />收件箱(3)</a>\n"
992 + " \n"
993 + " <a href=\"http://my.iteye.com\" title=\"我的应用首页\">我的应用</a>\n"
994 + " <div class=\"quick_menu\" style=\"display:none;\">\n"
995 + " <a href=\"http://my.iteye.com/feed\" title=\"我关注的好友动态消息\">我的关注</a>\n"
996 + " <a href=\"http://my.iteye.com/mygroup\" title=\"我加入的群组最新话题\">我的群组</a>\n"
997 + " <a href=\"http://my.iteye.com/myresume\" title=\"我的个人简历\">我的简历</a>\n"
998 + " <a href=\"http://my.iteye.com/admin/album\" title=\"我的个人简历\">我的相册</a>\n"
999 + " <a href=\"http://my.iteye.com/admin/link\" title=\"我收藏的网络资源链接\">我的收藏</a>\n"
1000 + " <a href=\"http://my.iteye.com/admin/code\" title=\"我收藏的代码\">我的代码</a>\n"
1001 + " <a href=\"http://my.iteye.com/admin/weibo\" title=\"用微博发表简短的话题\">我的微博</a>\n"
1002 + " </div>\n"
1003 + " <a href=\"http://flashsword20.iteye.com/admin\" title=\"管理我的博客\">我的博客</a>\n"
1004 + " <a href=\"http://my.iteye.com/profile\" title=\"修改我的个人设置\">设置</a>\n"
1005 + " <a href=\"/logout\" class=\"nobg\" onclick=\"var f = document.createElement('form'); f.style.display = 'none'; this.parentNode.appendChild(f); f.method = 'POST'; f.action = this.href;var m = document.createElement('input'); m.setAttribute('type', 'hidden'); m.setAttribute('name', '_method'); m.setAttribute('value', 'put'); f.appendChild(m);var s = document.createElement('input'); s.setAttribute('type', 'hidden'); s.setAttribute('name', 'authenticity_token'); s.setAttribute('value', 'TDmn/IsWi1Aj4CXKfdMKZZzALz6jbRU/Biw0/QHnsVw='); f.appendChild(s);f.submit();return false;\">退出</a>\n"
1006 + " </div>\n"
1007 + "\n"
1008 + " </div>\n"
1009 + "\n"
1010 + " <div id=\"page\">\n"
1011 + " <div id=\"branding\" class=\"clearfix\">\n"
1012 + " <div id=\"blog_name\">\n"
1013 + " <h1><a href=\"/\">masong1987</a></h1>\n"
1014 + " </div>\n"
1015 + " <div id='fd'></div>\n"
1016 + " <div id=\"blog_navbar\">\n"
1017 + " <ul>\n"
1018 + " <li class='blog_navbar_for'><a href=\"http://masong1987.iteye.com\"><strong>博客</strong></a></li>\n"
1019 + " <li ><a href=\"/weibo\">微博</a></li>\n"
1020 + " <li ><a href=\"/album\">相册</a></li>\n"
1021 + " <li ><a href=\"/link\">收藏</a></li>\n"
1022 + " <li ><a href=\"/blog/guest_book\">留言</a></li>\n"
1023 + " <li ><a href=\"/blog/profile\">关于我</a></li>\n"
1024 + " </ul>\n"
1025 + " \n"
1026 + " <div class=\"search\">\n"
1027 + " <form action=\"/blog/search\" method=\"get\">\n"
1028 + " <input class=\"search_text\" id=\"query\" name=\"query\" style=\"margin-left: 10px;width: 110px;\" type=\"text\" value=\"\" />\n"
1029 + " <input class=\"submit_search\" type=\"submit\" value=\"\" />\n"
1030 + " </form>\n"
1031 + " </div> \n"
1032 + " <div id=\"fd\"></div> \n"
1033 + " </div>\n"
1034 + " </div>\n"
1035 + " \n"
1036 + " <div id=\"content\" class=\"clearfix\">\n"
1037 + " <div id=\"main\">\n"
1038 + " \n"
1039 + "\n"
1040 + "\n"
1041 + "\n"
1042 + " \n"
1043 + "\n"
1044 + "\n"
1045 + "<div class=\"blog_main\">\n"
1046 + " <div class=\"blog_title\">\n"
1047 + " <h3>\n"
1048 + " <a href=\"/blog/1191016\">jsoup 解析页面商品信息</a>\n"
1049 + " <em class=\"actions\"> </em>\n"
1050 + " </h3>\n"
1051 + " <ul class='blog_categories'><strong>博客分类:</strong> <li><a href=\"/category/182324\">爬虫</a></li> </ul>\n"
1052 + " <div class='news_tag'> </div>\n"
1053 + " </div>\n"
1054 + "\n"
1055 + " <div id=\"blog_content\" class=\"blog_content\">\n"
1056 + " <p>今天用了jsoup 解析页面商品信息,感觉比用xpath获取信息准确多了</p>\n"
1057 + "<p> </p>\n"
1058 + "<p>下面就记录一下:</p>\n"
1059 + "<p>一、首先去 <a href=\"http://jsoup.org/download\">http://jsoup.org/download</a> 下载jsoup的jar包。</p>\n"
1060 + "<p> </p>\n"
1061 + "<p>二、下面记录下相关代码:</p>\n"
1062 + "<p> </p>\n"
1063 + "<p> </p>\n"
1064 + "<p> Document doc = Jsoup.connect(url).get(); //将htm转换成Document类型数据结构</p>\n"
1065 + "<p> <br> doc.select(\"div:has(div) div#spec-n1:has(img) img\").first().attr(\"src\")); //查找div下含有div的标签</p>\n"
1066 + "<p> </p>\n"
1067 + "<p> 并且 div的id='spec-n1',此div第一个img标签,img里属性是src的值。</p>\n"
1068 + "<p> </p>\n"
1069 + "<p> doc.select(\"div:has(div) div.crumb:has(a) a:eq(4)\").text(); //查找class='crumb'的div下第4个a标签</p>\n"
1070 + "<p> 下的值。</p>\n"
1071 + "<p> </p>\n"
1072 + "<p> doc.select(\"div:has(div) div#name:has(h1)\").text(); //查找id='name'的div下的h1标签的值。</p>\n"
1073 + "<p> </p>\n"
1074 + "<p> doc.select(\"tbody:has(tr) td.tdTitle:contains(品牌) + td\").text(); //查找class='tdTitle'的td标签里</p>\n"
1075 + "<p> </p>\n"
1076 + "<p> 含有‘品牌’td的下一个td标签中内容。</p>\n"
1077 + "<p> </p>\n"
1078 + "<p> doc.select(\"script[type=text/javascript]:not([src~=[a-zA-Z0-9./\\\\s]+)\"); //查找含有此<script </p>\n"
1079 + "<p> </p>\n"
1080 + "<p> type=\"text/javascript\">……</script>内容,不含有script标签中有src属性的script,如:</p>\n"
1081 + "<p> </p>\n"
1082 + "<p> <script src=\"url\" type=\"text/javascript\"></script>。</p>\n"
1083 + " </div>\n"
1084 + "\n"
1085 + " \n"
1086 + "\n"
1087 + "\n"
1088 + " <IFRAME SRC=\"/iframe_ggbd/794\" SCROLLING=no WIDTH=468 HEIGHT=60 FRAMEBORDER=0></IFRAME>\n"
1089 + " \n"
1090 + " <div id=\"bottoms\" class=\"clearfix\">\n"
1091 + " \n"
1092 + " <div id=\"share_weibo\">分享到:\n"
1093 + " <a data-type='sina' href=\"javascript:;\" title=\"分享到新浪微博\"><img src=\"/images/sina.jpg\"></a>\n"
1094 + " <a data-type='qq' href=\"javascript:;\" title=\"分享到腾讯微博\"><img src=\"/images/tec.jpg\"></a>\n"
1095 + " </div>\n"
1096 + " </div>\n"
1097 + "\n"
1098 + " <div class=\"blog_nav\">\n"
1099 + " <div class=\"pre_next\">\n"
1100 + " <a href=\"/blog/1310327\" class=\"next\" title=\"ibatis中书写SQL语句时使用in遇到的问题\">ibatis中书写SQL语句时使用in遇到的问题</a>\n"
1101 + " |\n"
1102 + " <a href=\"/blog/1189699\" class=\"pre\" title=\"尚未备份数据库 "***" 的日志尾部。如果该日志包含您不希望丢失的工作,请使用 BACKUP LOG WITH NORECOVERY 备份该日志。请使用 RE\">尚未备份数据库 "***" 的日志尾部。如果该 ...</a>\n"
1103 + " </div>\n"
1104 + " </div>\n"
1105 + " <div class=\"blog_bottom\">\n"
1106 + " <ul>\n"
1107 + " <li>2011-10-12 18:52</li>\n"
1108 + " <li>浏览 692</li>\n"
1109 + " <li><a href=\"#comments\">评论(0)</a></li>\n"
1110 + " \n"
1111 + " \n"
1112 + " <li><a href='/admin/link?user_favorite%5Btitle%5D=jsoup+%E8%A7%A3%E6%9E%90%E9%A1%B5%E9%9D%A2%E5%95%86%E5%93%81%E4%BF%A1%E6%81%AF&user_favorite%5Burl%5D=http%3A%2F%2Fmasong1987.iteye.com%2Fblog%2F1191016' target='_blank' class='favorite' onclick=\"$$('.favorite_form_spinner')[0].show();new Ajax.Request('/admin/link/new_xhr?user_favorite%5Btitle%5D=jsoup+%E8%A7%A3%E6%9E%90%E9%A1%B5%E9%9D%A2%E5%95%86%E5%93%81%E4%BF%A1%E6%81%AF&user_favorite%5Burl%5D=http%3A%2F%2Fmasong1987.iteye.com%2Fblog%2F1191016', {method: 'get', onSuccess: function(response){$(document.getElementsByTagName('body')[0]).insert({bottom:response.responseText});$$('.favorite_form_spinner')[0].hide();}});return false;\">收藏</a><img alt=\"Spinner\" class=\"favorite_form_spinner\" src=\"http://www.iteye.com/images/spinner.gif?1324994303\" style=\"vertical-align:bottom;margin-left:7px;display:none;\" /></li>\n"
1113 + " \n"
1114 + " <li>分类:<a href=\"http://www.iteye.com/blogs/category/opensource\">开源软件</a></li> \n"
1115 + " <li class='last'><a href=\"http://www.iteye.com/wiki/blog/1191016\" target=\"_blank\" class=\"more\">相关推荐</a></li>\n"
1116 + " </ul>\n"
1117 + " </div>\n"
1118 + "\n"
1119 + " <div class=\"blog_comment\">\n"
1120 + " <h5>评论</h5>\n"
1121 + " <a id=\"comments\" name=\"comments\"></a>\n"
1122 + " \n"
1123 + " \n"
1124 + " \n"
1125 + " </div>\n"
1126 + "\n"
1127 + " <div class=\"blog_comment\">\n"
1128 + " <h5>发表评论</h5>\n"
1129 + " <form action=\"/blog/1191016\" id=\"comment_form\" method=\"post\" onsubmit=\"return false;\"><div style=\"margin:0;padding:0;display:inline\"><input name=\"authenticity_token\" type=\"hidden\" value=\"TDmn/IsWi1Aj4CXKfdMKZZzALz6jbRU/Biw0/QHnsVw=\" /></div> \n"
1130 + "\n"
1131 + "\n"
1132 + " <input type=\"hidden\" id=\"editor_bbcode_flag\"/>\n"
1133 + "\n"
1134 + "\n"
1135 + "\n"
1136 + "<div id=\"editor_main\"><textarea class=\"validate-richeditor bad-words min-length-5\" cols=\"40\" id=\"editor_body\" name=\"comment[body]\" rows=\"20\" style=\"width: 500px; height: 350px;\"></textarea></div>\n"
1137 + "\n"
1138 + "\n"
1139 + "<script type=\"text/javascript\">\n"
1140 + " var editor = new Control.TextArea.Editor(\"editor_body\", \"bbcode\", false);\n"
1141 + "</script>\n"
1142 + "\n"
1143 + " <p style=\"text-align:right;margin-right:30px;\">(快捷键 Alt+S / Ctrl+Enter) <input class=\"submit\" id=\"quick_reply_button\" name=\"commit\" type=\"submit\" value=\"提交\" /></p>\n"
1144 + " </form>\n"
1145 + " <script type=\"text/javascript\">\n"
1146 + " new HotKey(\"s\",function() {$('quick_reply_button').click();},{altKey: true, ctrlKey: false});\n"
1147 + " new HotKey(new Number(13),function() {$('quick_reply_button').click();},{altKey: false, ctrlKey: true});\n"
1148 + "\n"
1149 + " new Validation(\"comment_form\", {immediate: false, onFormValidate: function(result, form){\n"
1150 + " if(result) {\n"
1151 + " new Ajax.Request('/blog/create_comment/1191016', {\n"
1152 + " onFailure:function(response){\n"
1153 + " $('comments').insert({after:response.responseText})\n"
1154 + " form.spinner.hide();\n"
1155 + " Element.scrollTo($('comments'));\n"
1156 + " },\n"
1157 + " onSuccess:function(response){\n"
1158 + " Element.scrollTo($('comments'));\n"
1159 + " var new_comment = new Element('div', {}).update(response.responseText).firstChild;\n"
1160 + " var comment_id = new_comment.readAttribute('id');\n"
1161 + "\n"
1162 + " $('comments').insert({after:response.responseText});\n"
1163 + " $('editor_body').value = \"\";\n"
1164 + "\n"
1165 + " var css_rules = '#' + comment_id + ' pre';\n"
1166 + " highlightNewAddContent(css_rules);\n"
1167 + " processComment();\n"
1168 + " code_favorites_init(css_rules);\n"
1169 + " \n"
1170 + " form.spinner.hide();\n"
1171 + " }, parameters:Form.serialize(form)\n"
1172 + " });\n"
1173 + " }\n"
1174 + " }});\n"
1175 + " </script>\n"
1176 + " </div>\n"
1177 + "</div>\n"
1178 + "\n"
1179 + "\n"
1180 + "<script type=\"text/javascript\">\n"
1181 + " dp.SyntaxHighlighter.HighlightAll('code', true, true);\n"
1182 + "\n"
1183 + " $$('#main .blog_content pre[name=code]').each(function(pre, index){ // blog content\n"
1184 + " var post_id = 1191016;\n"
1185 + " var location = window.location;\n"
1186 + " source_url = location.protocol + \"//\" + location.host + location.pathname + location.search;\n"
1187 + " pre.writeAttribute('codeable_id', post_id);\n"
1188 + " pre.writeAttribute('codeable_type', \"OschinaBlog\");\n"
1189 + " pre.writeAttribute('source_url', source_url);\n"
1190 + " pre.writeAttribute('pre_index', index);\n"
1191 + " pre.writeAttribute('title', 'jsoup 解析页面商品信息');\n"
1192 + " });\n"
1193 + "\n"
1194 + " fix_image_size($$('div.blog_content img'), 700);\n"
1195 + "\n"
1196 + " function processComment() {\n"
1197 + " $$('#main .blog_comment > div').each(function(comment){// comment\n"
1198 + " var post_id = comment.id.substr(2);\n"
1199 + " $$(\"#\"+comment.id+\" pre[name=code]\").each(function(pre, index){\n"
1200 + " var location = window.location;\n"
1201 + " source_url = location.protocol + \"//\" + location.host + location.pathname + location.search;\n"
1202 + " source_url += \"#\" + comment.id;\n"
1203 + " pre.writeAttribute('codeable_id', post_id);\n"
1204 + " pre.writeAttribute('codeable_type', \"BlogComment\");\n"
1205 + " pre.writeAttribute('source_url', source_url);\n"
1206 + " pre.writeAttribute('pre_index', index);\n"
1207 + " pre.writeAttribute('title', 'jsoup 解析页面商品信息');\n"
1208 + " });\n"
1209 + " });\n"
1210 + " }\n"
1211 + "\n"
1212 + " function quote_comment(id) {\n"
1213 + " new Ajax.Request('/editor/quote', {\n"
1214 + " parameters: {'id':id, 'type':'BlogComment'},\n"
1215 + " onSuccess:function(response){editor.bbcode_editor.textarea.insertAfterSelection(response.responseText);\n"
1216 + " Element.scrollTo(editor.bbcode_editor.textarea.element);}\n"
1217 + " });\n"
1218 + " }\n"
1219 + "\n"
1220 + " code_favorites_init();\n"
1221 + " processComment();\n"
1222 + " new WeiboShare({share_buttons: $('share_weibo'), img_scope: $('blog_content')});\n"
1223 + "</script>\n"
1224 + "\n"
1225 + "\n"
1226 + "\n"
1227 + "\n"
1228 + " </div>\n"
1229 + "\n"
1230 + " <div id=\"local\">\n"
1231 + " <div class=\"local_top\"></div>\n"
1232 + " <div id=\"blog_owner\">\n"
1233 + " <div id=\"blog_owner_logo\"><a href='http://masong1987.iteye.com'><img alt=\"masong1987的博客\" class=\"logo\" src=\"http://www.iteye.com/images/user-logo.gif?1324994303\" title=\"masong1987的博客: \" /></a></div>\n"
1234 + " <div id=\"blog_owner_name\">masong1987</div>\n"
1235 + "</div>\n"
1236 + "\n"
1237 + " <div id=\"blog_actions\">\n"
1238 + " <ul>\n"
1239 + " <li>浏览: 5401 次</li>\n"
1240 + " <li>性别: <img alt=\"Icon_minigender_1\" src=\"http://www.iteye.com/images/icon_minigender_1.gif?1324994303\" title=\"男\" /></li>\n"
1241 + " <li>来自: 北京</li>\n"
1242 + " <li><img src='/images/status/offline.gif'/></li>\n"
1243 + " \n"
1244 + " <li>\n"
1245 + " <a href=\"http://my.iteye.com/messages/new?message%5Breceiver_name%5D=masong1987\" class=\"message\" title=\"发送站内短信\">发短消息</a>\n"
1246 + " \n"
1247 + " <a href=\"http://my.iteye.com/feed?subscription%5Bsubscribed_user_name%5D=masong1987\" class=\"subscription\" onclick=\"var f = document.createElement('form'); f.style.display = 'none'; this.parentNode.appendChild(f); f.method = 'POST'; f.action = this.href;var s = document.createElement('input'); s.setAttribute('type', 'hidden'); s.setAttribute('name', 'authenticity_token'); s.setAttribute('value', 'TDmn/IsWi1Aj4CXKfdMKZZzALz6jbRU/Biw0/QHnsVw='); f.appendChild(s);f.submit();return false;\">关注</a>\n"
1248 + " \n"
1249 + " </li>\n"
1250 + " \n"
1251 + " </ul>\n"
1252 + " </div>\n"
1253 + " <div id=\"user_visits\" class=\"clearfix\">\n"
1254 + " <h5>最近访客 <span style='font-weight:normal;font-size:12px;padding-left:30px;'><a href=\"/blog/user_visits\">更多访客>></a></span></h5>\n"
1255 + " \n"
1256 + " <div class=\"user_visit\">\n"
1257 + " <div class=\"logo\"><a href='http://flashsword20.iteye.com' target='_blank'><img alt=\"flashsword20的博客\" class=\"logo\" src=\"http://www.iteye.com/images/user-logo-thumb.gif?1324994303\" title=\"flashsword20的博客: \" /></a></div>\n"
1258 + " <div class=\"left\"><a href='http://flashsword20.iteye.com' target='_blank' title='flashsword20'>flashsword20</a></div>\n"
1259 + " </div>\n"
1260 + " \n"
1261 + " <div class=\"user_visit\">\n"
1262 + " <div class=\"logo\"><a href='http://dylinshi126.iteye.com' target='_blank'><img alt=\"dylinshi126的博客\" class=\"logo\" src=\"http://www.iteye.com/images/user-logo-thumb.gif?1324994303\" title=\"dylinshi126的博客: \" /></a></div>\n"
1263 + " <div class=\"left\"><a href='http://dylinshi126.iteye.com' target='_blank' title='dylinshi126'>dylinshi126</a></div>\n"
1264 + " </div>\n"
1265 + " \n"
1266 + " <div class=\"user_visit\">\n"
1267 + " <div class=\"logo\"><a href='http://machoo.iteye.com' target='_blank'><img alt=\"machoo的博客\" class=\"logo\" src=\"http://www.iteye.com/upload/logo/user/590501/f3e5a6de-fa04-3ca9-92bd-378230b128c8-thumb.jpg?1321544632\" title=\"machoo的博客: 虚拟机终结者\" /></a></div>\n"
1268 + " <div class=\"left\"><a href='http://machoo.iteye.com' target='_blank' title='machoo'>machoo</a></div>\n"
1269 + " </div>\n"
1270 + " \n"
1271 + " <div class=\"user_visit\">\n"
1272 + " <div class=\"logo\"><a href='http://arson.iteye.com' target='_blank'><img alt=\"arson的博客\" class=\"logo\" src=\"http://www.iteye.com/upload/logo/user/511499/91eafa67-ebbb-32d2-a1c4-fc1c169b5c66-thumb.jpg?1310020715\" title=\"arson的博客: \" /></a></div>\n"
1273 + " <div class=\"left\"><a href='http://arson.iteye.com' target='_blank' title='arson'>arson</a></div>\n"
1274 + " </div>\n"
1275 + " \n"
1276 + " </div>\n"
1277 + "\n"
1278 + " \n"
1279 + "\n"
1280 + " <div id=\"blog_menu\">\n"
1281 + " <h5>文章分类</h5>\n"
1282 + " <ul>\n"
1283 + " <li><a href=\"/\">全部博客 (10)</a></li>\n"
1284 + " \n"
1285 + " <li><a href=\"/category/180178\">java (1)</a></li>\n"
1286 + " \n"
1287 + " <li><a href=\"/category/178810\">JavaScript (2)</a></li>\n"
1288 + " \n"
1289 + " <li><a href=\"/category/181978\">SQLServer (1)</a></li>\n"
1290 + " \n"
1291 + " <li><a href=\"/category/214133\">MySQL (1)</a></li>\n"
1292 + " \n"
1293 + " <li><a href=\"/category/182324\">爬虫 (1)</a></li>\n"
1294 + " \n"
1295 + " <li><a href=\"/category/195652\">ibatis (2)</a></li>\n"
1296 + " \n"
1297 + " <li><a href=\"/category/195881\">Spring (1)</a></li>\n"
1298 + " \n"
1299 + " <li><a href=\"/category/216639\">tomcat (0)</a></li>\n"
1300 + " \n"
1301 + " <li><a href=\"/category/217595\">数据结构 (1)</a></li>\n"
1302 + " \n"
1303 + " </ul>\n"
1304 + " </div>\n"
1305 + " <div id='month_blogs'>\n"
1306 + " <h5>社区版块</h5>\n"
1307 + " <ul>\n"
1308 + " <li><a href=\"/blog/news\">我的资讯</a> (0)</li>\n"
1309 + " <li>\n"
1310 + " <a href=\"/blog/post\">我的论坛</a> (0)\n"
1311 + " </li>\n"
1312 + " <li><a href=\"/blog/answered_problems\">我的问答</a> (0)</li>\n"
1313 + " </ul>\n"
1314 + " </div>\n"
1315 + " <div id=\"month_blogs\">\n"
1316 + " <h5>存档分类</h5>\n"
1317 + " <ul>\n"
1318 + " \n"
1319 + " <li><a href=\"/blog/monthblog/2012-04\">2012-04</a> (2)</li>\n"
1320 + " \n"
1321 + " <li><a href=\"/blog/monthblog/2012-03\">2012-03</a> (1)</li>\n"
1322 + " \n"
1323 + " <li><a href=\"/blog/monthblog/2012-02\">2012-02</a> (1)</li>\n"
1324 + " \n"
1325 + " <li><a href=\"/blog/monthblog_more\">更多存档...</a></li>\n"
1326 + " </ul>\n"
1327 + " </div>\n"
1328 + " \n"
1329 + " \n"
1330 + "\n"
1331 + " <div id=\"guest_books\">\n"
1332 + " <h5>最新评论</h5>\n"
1333 + " <ul>\n"
1334 + " \n"
1335 + " <li>\n"
1336 + " <a href='http://marrymyy.iteye.com' target='_blank' title='marrymyy'>marrymyy</a>: \n"
1337 + " 太好了,刚遇到这个问题,有用<br />\n"
1338 + " <a href=\"/blog/1189699#bc2305339\">尚未备份数据库 "***" 的日志尾部。如果该日志包含您不希望丢失的工作,请使用 BACKUP LOG WITH NORECOVERY 备份该日志。请使用 RE</a>\n"
1339 + " </li>\n"
1340 + " \n"
1341 + " </ul>\n"
1342 + " </div>\n"
1343 + "\n"
1344 + " <div class=\"local_bottom\"></div>\n"
1345 + " \n"
1346 + " </div>\n"
1347 + " </div>\n"
1348 + "\n"
1349 + " <div id=\"footer\" class=\"clearfix\">\n"
1350 + " <div id=\"copyright\">\n"
1351 + " <hr/>\n"
1352 + " 声明:ITeye文章版权属于作者,受法律保护。没有作者书面许可不得转载。若作者同意转载,必须以超链接形式标明文章原始出处和作者。<br />\n"
1353 + " © 2003-2012 ITeye.com. All rights reserved. [ 京ICP证110151号 京公网安备110105010620 ]\n"
1354 + " </div>\n"
1355 + " </div>\n"
1356 + " </div>\n"
1357 + " <script type=\"text/javascript\">\n"
1358 + " document.write(\"<img src='http://stat.iteye.com/?url=\"+ encodeURIComponent(document.location.href) + \"&referrer=\" + encodeURIComponent(document.referrer) + \"&user_id=635408' width='0' height='0' />\");\n"
1359 + "</script>\n" + "\n" + " \n" + " \n" + " </body>\n" + "</html>\n";
1360 String text2 = "<div>aaa</div>";
1361 XpathSelector xpathSelector = new XpathSelector(
1362 "//div[@id='main']/div[@class='blog_main']/div[@class='blog_title']/h3/a/text()");
1363 String select = xpathSelector.select(text);
1364 Assert.assertEquals("jsoup 解析页面商品信息", select);
1365 }
1366
1367 @Test
1368 public void testOschina() {
1369 Html html1 = new Html(html);
1370 Assert.assertEquals("再次吐槽easyui", html1.xpath("//*[@class='QTitle']/h1/a/text()").toString());
1371 Assert.assertNotNull(html1.$("a[href]").xpath("//@href").all());
1372 Selectors.xpath("/abc/").select("");
1373 }
1374
1375 @Test
1376 public void testXPath2() {
1377 String text = "<h1>眉山:扎实推进农业农村工作 促农持续增收<br>\n" +
1378 "<span>2013-07-31 23:29:45 来源:<a href=\"http://www.mshw.net\" target=\"_blank\" style=\"color:#AAA\">眉山网</a> 责任编辑:张斯炜</span></h1>";
1379 Xpath2Selector xpathSelector = new Xpath2Selector("//h1/text()");
1380 Assert.assertEquals("眉山:扎实推进农业农村工作 促农持续增收", xpathSelector.select(text));
1381 }
1382
1383 @Test
1384 public void testXpath2Selector() {
1385 Xpath2Selector xpath2Selector = new Xpath2Selector("//xhtml:a/@href");
1386 String select = xpath2Selector.select(html);
1387 Assert.assertEquals("http://www.oschina.net/", select);
1388
1389 List<String> selectList = xpath2Selector.selectList(html);
1390 Assert.assertEquals(113, selectList.size());
1391 Assert.assertEquals("http://www.oschina.net/", selectList.get(0));
1392 }
1393
1394 @Ignore("take long time")
1395 @Test
1396 public void performanceTest() {
1397 Xpath2Selector xpath2Selector = new Xpath2Selector("//a");
1398 long time = System.currentTimeMillis();
1399 for (int i = 0; i < 1000; i++) {
1400 xpath2Selector.selectList(html);
1401 }
1402 System.out.println(System.currentTimeMillis() - time);
1403
1404 XpathSelector xpathSelector = new XpathSelector("//a");
1405 time = System.currentTimeMillis();
1406 for (int i = 0; i < 1000; i++) {
1407 xpathSelector.selectList(html);
1408 }
1409 System.out.println(System.currentTimeMillis() - time);
1410
1411 time = System.currentTimeMillis();
1412 for (int i = 0; i < 1000; i++) {
1413 xpath2Selector.selectList(html);
1414 }
1415 System.out.println(System.currentTimeMillis() - time);
1416
1417 CssSelector cssSelector = new CssSelector("a");
1418 time = System.currentTimeMillis();
1419 for (int i = 0; i < 1000; i++) {
1420 cssSelector.selectList(html);
1421 }
1422 System.out.println("css " + (System.currentTimeMillis() - time));
1423 }
1424
1425 @Ignore("take long time")
1426 @Test
1427 public void parserPerformanceTest() throws XPatherException {
1428 System.out.println(html.length());
1429
1430 HtmlCleaner htmlCleaner = new HtmlCleaner();
1431 TagNode tagNode = htmlCleaner.clean(html);
1432 Document document = Jsoup.parse(html);
1433
1434 long time = System.currentTimeMillis();
1435 for (int i = 0; i < 2000; i++) {
1436 htmlCleaner.clean(html);
1437 }
1438 System.out.println(System.currentTimeMillis() - time);
1439
1440 time = System.currentTimeMillis();
1441 for (int i = 0; i < 2000; i++) {
1442 tagNode.evaluateXPath("//a");
1443 }
1444 System.out.println(System.currentTimeMillis() - time);
1445
1446 System.out.println("=============");
1447
1448 time = System.currentTimeMillis();
1449 for (int i = 0; i < 2000; i++) {
1450 Jsoup.parse(html);
1451 }
1452 System.out.println(System.currentTimeMillis() - time);
1453
1454 time = System.currentTimeMillis();
1455 for (int i = 0; i < 2000; i++) {
1456 document.select("a");
1457 }
1458 System.out.println(System.currentTimeMillis() - time);
1459
1460 System.out.println("=============");
1461
1462 time = System.currentTimeMillis();
1463 for (int i = 0; i < 2000; i++) {
1464 htmlCleaner.clean(html);
1465 }
1466 System.out.println(System.currentTimeMillis() - time);
1467
1468 time = System.currentTimeMillis();
1469 for (int i = 0; i < 2000; i++) {
1470 tagNode.evaluateXPath("//a");
1471 }
1472 System.out.println(System.currentTimeMillis() - time);
1473
1474 System.out.println("=============");
1475
1476 XPathEvaluator compile = Xsoup.compile("//a");
1477 time = System.currentTimeMillis();
1478 for (int i = 0; i < 2000; i++) {
1479 compile.evaluate(document);
1480 }
1481 System.out.println(System.currentTimeMillis() - time);
1482
1483 }
1484
1485
1486
1487
1488
1489
1490
1491 private String rank = "<div class=\"container\"><div class=\"container-bd\"><div class=\"c-left\"><div class=\"periods\"><a class=\"active\" href=\"http://www.ruoxia.com/top/dianji/day\">日</a> <a href=\"http://www.ruoxia.com/top/dianji/week\">周</a> <a href=\"http://www.ruoxia.com/top/dianji/month\">月</a></div><h1 class=\"page-title\"><i class=\"icon icon-rank\"></i> <span class=\"rankTitle\">点击榜</span></h1><div data-collect-id=\"2550\" class=\"mod mod-clean pattern-update-list update-list\"><div class=\"bd\"><table><thead><tr><th width=\"30\">排名</th><th width=\"50\">分类</th><th>书名/最新章节</th><th width=\"60\">作者</th><th width=\"80\">推荐</th><th width=\"100\">更新时间</th></tr></thead><tbody><tr><td class=\"index\">1.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=54\" class=\"tag\" targe=\"_blank\">现实</a></td><td><div class=\"range\"><a data-collect-index=\"1\" target=\"_blank\" href=\"http://www.ruoxia.com/book/83981\" targe=\"_blank\" class=\"name\">校园妖孽高手</a> <a href=\"http://www.ruoxia.com/book/83981/2154682\" class=\"chapter\">第三十章 求你收我为徒</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/17562559\" targe=\"_blank\" class=\"author\">白色风帆</a></div></td><td><div>0</div></td><td><span class=\"time\">11-24 22:32</span></td></tr><tr class=\"even\"><td class=\"index\">2.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=15\" class=\"tag\" targe=\"_blank\">架空</a></td><td><div class=\"range\"><a data-collect-index=\"2\" target=\"_blank\" href=\"http://www.ruoxia.com/book/43462\" targe=\"_blank\" class=\"name\">凤谋图</a> <a href=\"http://www.ruoxia.com/book/43462/1141799\" class=\"chapter\">写给最亲爱的你们(完结感言+新书推荐)</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/4482112\" targe=\"_blank\" class=\"author\">斑陆离</a></div></td><td><div>1047</div></td><td><span class=\"time\">03-04 14:44</span></td></tr><tr><td class=\"index\">3.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=54\" class=\"tag\" targe=\"_blank\">现实</a></td><td><div class=\"range\"><a data-collect-index=\"3\" target=\"_blank\" href=\"http://www.ruoxia.com/book/90878\" targe=\"_blank\" class=\"name\">女神的全职高手</a> <a href=\"http://www.ruoxia.com/book/90878/2491923\" class=\"chapter\">第五十一章 大结局。</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/18515896\" targe=\"_blank\" class=\"author\">白玉书生</a></div></td><td><div>0</div></td><td><span class=\"time\">07-20 09:06</span></td></tr><tr class=\"even\"><td class=\"index\">4.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=12\" class=\"tag\" targe=\"_blank\">豪门</a></td><td><div class=\"range\"><a data-collect-index=\"4\" target=\"_blank\" href=\"http://www.ruoxia.com/book/80166\" targe=\"_blank\" class=\"name\">闪婚夺爱:总裁老公太霸道</a> <a href=\"http://www.ruoxia.com/book/80166/2167580\" class=\"chapter\">第140章 大结局</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/5152286\" targe=\"_blank\" class=\"author\">丛慕然</a></div></td><td><div>0</div></td><td><span class=\"time\">12-03 09:12</span></td></tr><tr><td class=\"index\">5.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=54\" class=\"tag\" targe=\"_blank\">现实</a></td><td><div class=\"range\"><a data-collect-index=\"5\" target=\"_blank\" href=\"http://www.ruoxia.com/book/84765\" targe=\"_blank\" class=\"name\">最强神眼</a> <a href=\"http://www.ruoxia.com/book/84765/2261859\" class=\"chapter\">第72章 没羞没臊(大结局)</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/3822610\" targe=\"_blank\" class=\"author\">枫长弦</a></div></td><td><div>0</div></td><td><span class=\"time\">02-01 21:12</span></td></tr><tr class=\"even\"><td class=\"index\">6.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=24\" class=\"tag\" targe=\"_blank\">玄奇</a></td><td><div class=\"range\"><a data-collect-index=\"6\" target=\"_blank\" href=\"http://www.ruoxia.com/book/41149\" targe=\"_blank\" class=\"name\">胎楼</a> <a href=\"http://www.ruoxia.com/book/41149/1135302\" class=\"chapter\">写在最后的私话</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/5095127\" targe=\"_blank\" class=\"author\">丫丫雅雅</a></div></td><td><div>3455</div></td><td><span class=\"time\">02-28 12:31</span></td></tr><tr><td class=\"index\">7.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=24\" class=\"tag\" targe=\"_blank\">玄奇</a></td><td><div class=\"range\"><a data-collect-index=\"7\" target=\"_blank\" href=\"http://www.ruoxia.com/book/40863\" targe=\"_blank\" class=\"name\">我的未婚夫白狐大人</a> <a href=\"http://www.ruoxia.com/book/40863/1180864\" class=\"chapter\">【免费公告】新书《道士房东,快开门》已经发布了</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/5058618\" targe=\"_blank\" class=\"author\">佚之狐</a></div></td><td><div>20614</div></td><td><span class=\"time\">03-31 12:37</span></td></tr><tr class=\"even\"><td class=\"index\">8.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=50\" class=\"tag\" targe=\"_blank\">复仇</a></td><td><div class=\"range\"><a data-collect-index=\"8\" target=\"_blank\" href=\"http://www.ruoxia.com/book/30816\" targe=\"_blank\" class=\"name\">艳骨</a> <a href=\"http://www.ruoxia.com/book/30816/769427\" class=\"chapter\">番外(司浔)</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/1729575\" targe=\"_blank\" class=\"author\">e小调</a></div></td><td><div>55</div></td><td><span class=\"time\">06-03 11:43</span></td></tr><tr><td class=\"index\">9.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=17\" class=\"tag\" targe=\"_blank\">穿越</a></td><td><div class=\"range\"><a data-collect-index=\"9\" target=\"_blank\" href=\"http://www.ruoxia.com/book/82131\" targe=\"_blank\" class=\"name\">王爷,别动粗</a> <a href=\"http://www.ruoxia.com/book/82131/2097402\" class=\"chapter\">第041章 看来这个女人是在乎他的</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/15972439\" targe=\"_blank\" class=\"author\">春亦盎然</a></div></td><td><div>0</div></td><td><span class=\"time\">10-27 18:50</span></td></tr><tr class=\"even\"><td class=\"index\">10.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=19\" class=\"tag\" targe=\"_blank\">宫斗</a></td><td><div class=\"range\"><a data-collect-index=\"10\" target=\"_blank\" href=\"http://www.ruoxia.com/book/52279\" targe=\"_blank\" class=\"name\">深宫胭脂乱</a> <a href=\"http://www.ruoxia.com/book/52279/1567850\" class=\"chapter\">【263】为夫来的,可还算及时 HE版,感谢小伙伴们大半年来的不离不弃!</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/1664188\" targe=\"_blank\" class=\"author\">糖小贩</a></div></td><td><div>320</div></td><td><span class=\"time\">10-31 13:58</span></td></tr><tr><td class=\"index\">11.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=19\" class=\"tag\" targe=\"_blank\">宫斗</a></td><td><div class=\"range\"><a data-collect-index=\"11\" target=\"_blank\" href=\"http://www.ruoxia.com/book/45621\" targe=\"_blank\" class=\"name\">深宫安容传</a> <a href=\"http://www.ruoxia.com/book/45621/1361138\" class=\"chapter\">番外4 韶华不负,生生世世 (有红包哟)</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/5146663\" targe=\"_blank\" class=\"author\">鱼墨</a></div></td><td><div>6268</div></td><td><span class=\"time\">07-12 20:23</span></td></tr><tr class=\"even\"><td class=\"index\">12.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=54\" class=\"tag\" targe=\"_blank\">现实</a></td><td><div class=\"range\"><a data-collect-index=\"12\" target=\"_blank\" href=\"http://www.ruoxia.com/book/69000\" targe=\"_blank\" class=\"name\">我们的爱,未完待续</a> <a href=\"http://www.ruoxia.com/book/69000/1680336\" class=\"chapter\">第175章 番外:人生没有太晚的开始</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/5152286\" targe=\"_blank\" class=\"author\">丛慕然</a></div></td><td><div>0</div></td><td><span class=\"time\">01-18 23:00</span></td></tr><tr><td class=\"index\">13.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=35\" class=\"tag\" targe=\"_blank\">婚恋</a></td><td><div class=\"range\"><a data-collect-index=\"13\" target=\"_blank\" href=\"http://www.ruoxia.com/book/65082\" targe=\"_blank\" class=\"name\">我在时光深处忘记你</a> <a href=\"http://www.ruoxia.com/book/65082/1631623\" class=\"chapter\">新书已开</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/5222423\" targe=\"_blank\" class=\"author\">柯三岁</a></div></td><td><div>0</div></td><td><span class=\"time\">12-14 20:50</span></td></tr><tr class=\"even\"><td class=\"index\">14.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=22\" class=\"tag\" targe=\"_blank\">修真</a></td><td><div class=\"range\"><a data-collect-index=\"14\" target=\"_blank\" href=\"http://www.ruoxia.com/book/85911\" targe=\"_blank\" class=\"name\">女神总裁的妖孽兵王</a> <a href=\"http://www.ruoxia.com/book/85911/2265301\" class=\"chapter\">第52章 好吃的?</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/5507678\" targe=\"_blank\" class=\"author\">包仙人</a></div></td><td><div>0</div></td><td><span class=\"time\">02-03 23:40</span></td></tr><tr><td class=\"index\">15.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=12\" class=\"tag\" targe=\"_blank\">豪门</a></td><td><div class=\"range\"><a data-collect-index=\"15\" target=\"_blank\" href=\"http://www.ruoxia.com/book/83315\" targe=\"_blank\" class=\"name\">攻心为上:薄情总裁求放过</a> <a href=\"http://www.ruoxia.com/book/83315/2126598\" class=\"chapter\">第21章:别让我讨厌你</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/17393569\" targe=\"_blank\" class=\"author\">七月晚笙</a></div></td><td><div>0</div></td><td><span class=\"time\">11-06 23:38</span></td></tr><tr class=\"even\"><td class=\"index\">16.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=17\" class=\"tag\" targe=\"_blank\">穿越</a></td><td><div class=\"range\"><a data-collect-index=\"16\" target=\"_blank\" href=\"http://www.ruoxia.com/book/39361\" targe=\"_blank\" class=\"name\">妙手萌妃</a> <a href=\"http://www.ruoxia.com/book/39361/1021373\" class=\"chapter\">九十六</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/4048268\" targe=\"_blank\" class=\"author\">糖酱不甩</a></div></td><td><div>191</div></td><td><span class=\"time\">12-02 23:37</span></td></tr><tr><td class=\"index\">17.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=17\" class=\"tag\" targe=\"_blank\">穿越</a></td><td><div class=\"range\"><a data-collect-index=\"17\" target=\"_blank\" href=\"http://www.ruoxia.com/book/35111\" targe=\"_blank\" class=\"name\">炮灰女配二嫁攻略</a> <a href=\"http://www.ruoxia.com/book/35111/942024\" class=\"chapter\">番外</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/4165342\" targe=\"_blank\" class=\"author\">烬相思</a></div></td><td><div>412</div></td><td><span class=\"time\">10-13 22:39</span></td></tr><tr class=\"even\"><td class=\"index\">18.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=12\" class=\"tag\" targe=\"_blank\">豪门</a></td><td><div class=\"range\"><a data-collect-index=\"18\" target=\"_blank\" href=\"http://www.ruoxia.com/book/46464\" targe=\"_blank\" class=\"name\">娇妻别逃</a> <a href=\"http://www.ruoxia.com/book/46464/1344044\" class=\"chapter\">系列文开更了!</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/5625273\" targe=\"_blank\" class=\"author\">九竹</a></div></td><td><div>635</div></td><td><span class=\"time\">07-01 13:15</span></td></tr><tr><td class=\"index\">19.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=15\" class=\"tag\" targe=\"_blank\">架空</a></td><td><div class=\"range\"><a data-collect-index=\"19\" target=\"_blank\" href=\"http://www.ruoxia.com/book/26318\" targe=\"_blank\" class=\"name\">妾惊华</a> <a href=\"http://www.ruoxia.com/book/26318/789360\" class=\"chapter\">番外 3 正式完结 鬼月篇</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/2970776\" targe=\"_blank\" class=\"author\">温柔的小白兔</a></div></td><td><div>144</div></td><td><span class=\"time\">06-18 09:35</span></td></tr><tr class=\"even\"><td class=\"index\">20.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=20\" class=\"tag\" targe=\"_blank\">宅斗</a></td><td><div class=\"range\"><a data-collect-index=\"20\" target=\"_blank\" href=\"http://www.ruoxia.com/book/46115\" targe=\"_blank\" class=\"name\">废妾青瑶</a> <a href=\"http://www.ruoxia.com/book/46115/1420123\" class=\"chapter\">冷玉•世上堪哀只有痴 (不无聊依旧发着玩)</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/3428612\" targe=\"_blank\" class=\"author\">梦中说梦</a></div></td><td><div>1032</div></td><td><span class=\"time\">08-15 19:03</span></td></tr><tr><td class=\"index\">21.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=19\" class=\"tag\" targe=\"_blank\">宫斗</a></td><td><div class=\"range\"><a data-collect-index=\"21\" target=\"_blank\" href=\"http://www.ruoxia.com/book/78428\" targe=\"_blank\" class=\"name\">帝女长乐</a> <a href=\"http://www.ruoxia.com/book/78428/2057572\" class=\"chapter\">第一百六十三章大结局</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/5672126\" targe=\"_blank\" class=\"author\">梅花香雨</a></div></td><td><div>0</div></td><td><span class=\"time\">09-30 20:32</span></td></tr><tr class=\"even\"><td class=\"index\">22.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=12\" class=\"tag\" targe=\"_blank\">豪门</a></td><td><div class=\"range\"><a data-collect-index=\"22\" target=\"_blank\" href=\"http://www.ruoxia.com/book/72124\" targe=\"_blank\" class=\"name\">总裁在上,萌妻不乖</a> <a href=\"http://www.ruoxia.com/book/72124/1880164\" class=\"chapter\">新文公告</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/5152286\" targe=\"_blank\" class=\"author\">丛慕然</a></div></td><td><div>0</div></td><td><span class=\"time\">06-05 11:31</span></td></tr><tr><td class=\"index\">23.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=47\" class=\"tag\" targe=\"_blank\">重生</a></td><td><div class=\"range\"><a data-collect-index=\"23\" target=\"_blank\" href=\"http://www.ruoxia.com/book/63141\" targe=\"_blank\" class=\"name\">重生之只想好好爱你</a> <a href=\"http://www.ruoxia.com/book/63141/1604556\" class=\"chapter\">第三百三十一章 明白心意</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/2149297\" targe=\"_blank\" class=\"author\">忘忧草</a></div></td><td><div>80</div></td><td><span class=\"time\">11-25 19:56</span></td></tr><tr class=\"even\"><td class=\"index\">24.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=49\" class=\"tag\" targe=\"_blank\">异世</a></td><td><div class=\"range\"><a data-collect-index=\"24\" target=\"_blank\" href=\"http://www.ruoxia.com/book/45001\" targe=\"_blank\" class=\"name\">末世之活下去</a> <a href=\"http://www.ruoxia.com/book/45001/1073956\" class=\"chapter\">第一百一十四章 大结局之另种结局</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/4876856\" targe=\"_blank\" class=\"author\">清风随意</a></div></td><td><div>68</div></td><td><span class=\"time\">01-12 10:06</span></td></tr><tr><td class=\"index\">25.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=12\" class=\"tag\" targe=\"_blank\">豪门</a></td><td><div class=\"range\"><a data-collect-index=\"25\" target=\"_blank\" href=\"http://www.ruoxia.com/book/70099\" targe=\"_blank\" class=\"name\">以婚试爱:总裁老公太过分</a> <a href=\"http://www.ruoxia.com/book/70099/1871138\" class=\"chapter\">第二百章 温哥华的暖冬</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/14023478\" targe=\"_blank\" class=\"author\">乔慕燃</a></div></td><td><div>0</div></td><td><span class=\"time\">05-29 18:46</span></td></tr><tr class=\"even\"><td class=\"index\">26.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=35\" class=\"tag\" targe=\"_blank\">婚恋</a></td><td><div class=\"range\"><a data-collect-index=\"26\" target=\"_blank\" href=\"http://www.ruoxia.com/book/51499\" targe=\"_blank\" class=\"name\">顾瑾,我们要好好的</a> <a href=\"http://www.ruoxia.com/book/51499/2122738\" class=\"chapter\">新书~婚不谈爱,总裁老公住隔壁</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/2099877\" targe=\"_blank\" class=\"author\">一朵66</a></div></td><td><div>2778</div></td><td><span class=\"time\">11-04 17:48</span></td></tr><tr><td class=\"index\">27.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=1\" class=\"tag\" targe=\"_blank\">玄奇</a></td><td><div class=\"range\"><a data-collect-index=\"27\" target=\"_blank\" href=\"http://www.ruoxia.com/book/62293\" targe=\"_blank\" class=\"name\">吟尸调妃</a> <a href=\"http://www.ruoxia.com/book/62293/1620092\" class=\"chapter\">作品最后</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/6052301\" targe=\"_blank\" class=\"author\">乔沫若轩</a></div></td><td><div>207</div></td><td><span class=\"time\">12-06 16:57</span></td></tr><tr class=\"even\"><td class=\"index\">28.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=17\" class=\"tag\" targe=\"_blank\">穿越</a></td><td><div class=\"range\"><a data-collect-index=\"28\" target=\"_blank\" href=\"http://www.ruoxia.com/book/32090\" targe=\"_blank\" class=\"name\">嫡女皇商</a> <a href=\"http://www.ruoxia.com/book/32090/1065024\" class=\"chapter\">皇商开始修文</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/2595590\" targe=\"_blank\" class=\"author\">十七帝</a></div></td><td><div>260</div></td><td><span class=\"time\">01-04 23:26</span></td></tr><tr><td class=\"index\">29.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=12\" class=\"tag\" targe=\"_blank\">豪门</a></td><td><div class=\"range\"><a data-collect-index=\"29\" target=\"_blank\" href=\"http://www.ruoxia.com/book/80386\" targe=\"_blank\" class=\"name\">豪门养女:总裁请息怒</a> <a href=\"http://www.ruoxia.com/book/80386/2174667\" class=\"chapter\">第一百三十五章 最终番外</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/2079910\" targe=\"_blank\" class=\"author\">杨家小呆</a></div></td><td><div>0</div></td><td><span class=\"time\">12-07 21:39</span></td></tr><tr class=\"even\"><td class=\"index\">30.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=15\" class=\"tag\" targe=\"_blank\">架空</a></td><td><div class=\"range\"><a data-collect-index=\"30\" target=\"_blank\" href=\"http://www.ruoxia.com/book/46774\" targe=\"_blank\" class=\"name\">这盛世,如你所愿</a> <a href=\"http://www.ruoxia.com/book/46774/1282874\" class=\"chapter\">【免费公告】完结感言+新书公告</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/4950247\" targe=\"_blank\" class=\"author\">南风知意</a></div></td><td><div>1127</div></td><td><span class=\"time\">06-06 17:28</span></td></tr><tr><td class=\"index\">31.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=17\" class=\"tag\" targe=\"_blank\">穿越</a></td><td><div class=\"range\"><a data-collect-index=\"31\" target=\"_blank\" href=\"http://www.ruoxia.com/book/34887\" targe=\"_blank\" class=\"name\">江湖有晴天</a> <a href=\"http://www.ruoxia.com/book/34887/901292\" class=\"chapter\">第一二零章 阴谋叠加,尘埃落定(结局篇)</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/2077970\" targe=\"_blank\" class=\"author\">洛紫晴</a></div></td><td><div>113</div></td><td><span class=\"time\">09-13 09:06</span></td></tr><tr class=\"even\"><td class=\"index\">32.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=15\" class=\"tag\" targe=\"_blank\">架空</a></td><td><div class=\"range\"><a data-collect-index=\"32\" target=\"_blank\" href=\"http://www.ruoxia.com/book/57202\" targe=\"_blank\" class=\"name\">江山不若美人顾</a> <a href=\"http://www.ruoxia.com/book/57202/1711384\" class=\"chapter\">番外:最终章</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/2067719\" targe=\"_blank\" class=\"author\">慕容以泽</a></div></td><td><div>597</div></td><td><span class=\"time\">02-14 18:47</span></td></tr><tr><td class=\"index\">33.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=24\" class=\"tag\" targe=\"_blank\">玄奇</a></td><td><div class=\"range\"><a data-collect-index=\"33\" target=\"_blank\" href=\"http://www.ruoxia.com/book/54323\" targe=\"_blank\" class=\"name\">一碰冥婚</a> <a href=\"http://www.ruoxia.com/book/54323/1280258\" class=\"chapter\">第一百三十九章 秦无极诡上身</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/4782768\" targe=\"_blank\" class=\"author\">二手玫瑰</a></div></td><td><div>528</div></td><td><span class=\"time\">06-04 22:04</span></td></tr><tr class=\"even\"><td class=\"index\">34.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=17\" class=\"tag\" targe=\"_blank\">穿越</a></td><td><div class=\"range\"><a data-collect-index=\"34\" target=\"_blank\" href=\"http://www.ruoxia.com/book/27977\" targe=\"_blank\" class=\"name\">侯门丑媳</a> <a href=\"http://www.ruoxia.com/book/27977/774342\" class=\"chapter\">第202章 大结局</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/666311\" targe=\"_blank\" class=\"author\">东方怡然</a></div></td><td><div>328</div></td><td><span class=\"time\">06-06 22:09</span></td></tr><tr><td class=\"index\">35.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=15\" class=\"tag\" targe=\"_blank\">架空</a></td><td><div class=\"range\"><a data-collect-index=\"35\" target=\"_blank\" href=\"http://www.ruoxia.com/book/26287\" targe=\"_blank\" class=\"name\">将本红妆</a> <a href=\"http://www.ruoxia.com/book/26287/756383\" class=\"chapter\">完结感言 我们新文见</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/2382839\" targe=\"_blank\" class=\"author\">故城阿九</a></div></td><td><div>539</div></td><td><span class=\"time\">05-24 14:42</span></td></tr><tr class=\"even\"><td class=\"index\">36.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=15\" class=\"tag\" targe=\"_blank\">架空</a></td><td><div class=\"range\"><a data-collect-index=\"36\" target=\"_blank\" href=\"http://www.ruoxia.com/book/79251\" targe=\"_blank\" class=\"name\">妃卿非故:世子,有事好商量</a> <a href=\"http://www.ruoxia.com/book/79251/2304572\" class=\"chapter\">最后的一点小内容</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/5270097\" targe=\"_blank\" class=\"author\">白玉琼楼</a></div></td><td><div>0</div></td><td><span class=\"time\">03-05 23:27</span></td></tr><tr><td class=\"index\">37.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=17\" class=\"tag\" targe=\"_blank\">穿越</a></td><td><div class=\"range\"><a data-collect-index=\"37\" target=\"_blank\" href=\"http://www.ruoxia.com/book/31901\" targe=\"_blank\" class=\"name\">美人潋滟</a> <a href=\"http://www.ruoxia.com/book/31901/1998239\" class=\"chapter\">新文《爱有余温,触手可及》</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/1412126\" targe=\"_blank\" class=\"author\">冷在</a></div></td><td><div>3215</div></td><td><span class=\"time\">08-21 16:38</span></td></tr><tr class=\"even\"><td class=\"index\">38.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=19\" class=\"tag\" targe=\"_blank\">宫斗</a></td><td><div class=\"range\"><a data-collect-index=\"38\" target=\"_blank\" href=\"http://www.ruoxia.com/book/52159\" targe=\"_blank\" class=\"name\">后宫长梧传</a> <a href=\"http://www.ruoxia.com/book/52159/1402619\" class=\"chapter\">160 大结局</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/6660633\" targe=\"_blank\" class=\"author\">嘟嘟爱吃鱼</a></div></td><td><div>905</div></td><td><span class=\"time\">08-04 20:24</span></td></tr><tr><td class=\"index\">39.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=24\" class=\"tag\" targe=\"_blank\">玄奇</a></td><td><div class=\"range\"><a data-collect-index=\"39\" target=\"_blank\" href=\"http://www.ruoxia.com/book/51408\" targe=\"_blank\" class=\"name\">冥夫别过来</a> <a href=\"http://www.ruoxia.com/book/51408/1380765\" class=\"chapter\">新文速递(我好慌)</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/2538685\" targe=\"_blank\" class=\"author\">陌妖</a></div></td><td><div>1328</div></td><td><span class=\"time\">07-25 10:58</span></td></tr><tr class=\"even\"><td class=\"index\">40.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=17\" class=\"tag\" targe=\"_blank\">穿越</a></td><td><div class=\"range\"><a data-collect-index=\"40\" target=\"_blank\" href=\"http://www.ruoxia.com/book/44908\" targe=\"_blank\" class=\"name\">公子好倾城</a> <a href=\"http://www.ruoxia.com/book/44908/1094556\" class=\"chapter\">番外</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/5193966\" targe=\"_blank\" class=\"author\">颜箴言</a></div></td><td><div>203</div></td><td><span class=\"time\">01-27 20:53</span></td></tr><tr><td class=\"index\">41.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=19\" class=\"tag\" targe=\"_blank\">宫斗</a></td><td><div class=\"range\"><a data-collect-index=\"41\" target=\"_blank\" href=\"http://www.ruoxia.com/book/33791\" targe=\"_blank\" class=\"name\">女相倾天下</a> <a href=\"http://www.ruoxia.com/book/33791/879406\" class=\"chapter\">第九十三章 大结局</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/3970105\" targe=\"_blank\" class=\"author\">睡梦之城</a></div></td><td><div>407</div></td><td><span class=\"time\">08-31 09:03</span></td></tr><tr class=\"even\"><td class=\"index\">42.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=20\" class=\"tag\" targe=\"_blank\">宅斗</a></td><td><div class=\"range\"><a data-collect-index=\"42\" target=\"_blank\" href=\"http://www.ruoxia.com/book/28208\" targe=\"_blank\" class=\"name\">庶辜</a> <a href=\"http://www.ruoxia.com/book/28208/727884\" class=\"chapter\">请假通知</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/1434153\" targe=\"_blank\" class=\"author\">君醉</a></div></td><td><div>16</div></td><td><span class=\"time\">05-03 17:38</span></td></tr><tr><td class=\"index\">43.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=12\" class=\"tag\" targe=\"_blank\">豪门</a></td><td><div class=\"range\"><a data-collect-index=\"43\" target=\"_blank\" href=\"http://www.ruoxia.com/book/79201\" targe=\"_blank\" class=\"name\">隐婚蜜爱:首席老公别太坏</a> <a href=\"http://www.ruoxia.com/book/79201/2130842\" class=\"chapter\">第138章 筱雅,我终于等到你了!</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/15011710\" targe=\"_blank\" class=\"author\">古月初雪</a></div></td><td><div>0</div></td><td><span class=\"time\">11-10 08:00</span></td></tr><tr class=\"even\"><td class=\"index\">44.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=35\" class=\"tag\" targe=\"_blank\">婚恋</a></td><td><div class=\"range\"><a data-collect-index=\"44\" target=\"_blank\" href=\"http://www.ruoxia.com/book/76667\" targe=\"_blank\" class=\"name\">予你爱情,还我光阴</a> <a href=\"http://www.ruoxia.com/book/76667/1937700\" class=\"chapter\">第066章 结尾</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/15544088\" targe=\"_blank\" class=\"author\">美人折</a></div></td><td><div>0</div></td><td><span class=\"time\">07-12 21:37</span></td></tr><tr><td class=\"index\">45.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=15\" class=\"tag\" targe=\"_blank\">架空</a></td><td><div class=\"range\"><a data-collect-index=\"45\" target=\"_blank\" href=\"http://www.ruoxia.com/book/73761\" targe=\"_blank\" class=\"name\">王妃,王爷又来拆墙了</a> <a href=\"http://www.ruoxia.com/book/73761/1908547\" class=\"chapter\">有红包</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/5672126\" targe=\"_blank\" class=\"author\">梅花香雨</a></div></td><td><div>0</div></td><td><span class=\"time\">06-23 21:02</span></td></tr><tr class=\"even\"><td class=\"index\">46.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=24\" class=\"tag\" targe=\"_blank\">玄奇</a></td><td><div class=\"range\"><a data-collect-index=\"46\" target=\"_blank\" href=\"http://www.ruoxia.com/book/42459\" targe=\"_blank\" class=\"name\">爱上我的阴阳先生</a> <a href=\"http://www.ruoxia.com/book/42459/1273498\" class=\"chapter\">完本感言</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/3227798\" targe=\"_blank\" class=\"author\">魑魅魁魃</a></div></td><td><div>1382</div></td><td><span class=\"time\">05-31 20:36</span></td></tr><tr><td class=\"index\">47.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=47\" class=\"tag\" targe=\"_blank\">重生</a></td><td><div class=\"range\"><a data-collect-index=\"47\" target=\"_blank\" href=\"http://www.ruoxia.com/book/29035\" targe=\"_blank\" class=\"name\">嫡女重生</a> <a href=\"http://www.ruoxia.com/book/29035/828174\" class=\"chapter\">完结感言</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/3252807\" targe=\"_blank\" class=\"author\">小喵家的温婉</a></div></td><td><div>334</div></td><td><span class=\"time\">07-16 19:19</span></td></tr><tr class=\"even\"><td class=\"index\">48.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=35\" class=\"tag\" targe=\"_blank\">婚恋</a></td><td><div class=\"range\"><a data-collect-index=\"48\" target=\"_blank\" href=\"http://www.ruoxia.com/book/58092\" targe=\"_blank\" class=\"name\">亲爱的,我不等你了</a> <a href=\"http://www.ruoxia.com/book/58092/2105021\" class=\"chapter\">嘿,还有宝贝在吗?</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/5209133\" targe=\"_blank\" class=\"author\">依人茶</a></div></td><td><div>505</div></td><td><span class=\"time\">11-01 16:42</span></td></tr><tr><td class=\"index\">49.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=35\" class=\"tag\" targe=\"_blank\">婚恋</a></td><td><div class=\"range\"><a data-collect-index=\"49\" target=\"_blank\" href=\"http://www.ruoxia.com/book/77198\" targe=\"_blank\" class=\"name\">爱已过期:总裁前夫请放手</a> <a href=\"http://www.ruoxia.com/book/77198/2085300\" class=\"chapter\">第一百六十七章 余生有你陪伴 全文完</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/2149297\" targe=\"_blank\" class=\"author\">忘忧草</a></div></td><td><div>0</div></td><td><span class=\"time\">10-19 18:32</span></td></tr><tr class=\"even\"><td class=\"index\">50.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=12\" class=\"tag\" targe=\"_blank\">豪门</a></td><td><div class=\"range\"><a data-collect-index=\"50\" target=\"_blank\" href=\"http://www.ruoxia.com/book/56098\" targe=\"_blank\" class=\"name\">你的甜蜜,触手不及</a> <a href=\"http://www.ruoxia.com/book/56098/1476223\" class=\"chapter\">圆宝的完结感言</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/7144700\" targe=\"_blank\" class=\"author\">圆八宝</a></div></td><td><div>540</div></td><td><span class=\"time\">09-19 19:18</span></td></tr><tr><td class=\"index\">51.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=35\" class=\"tag\" targe=\"_blank\">婚恋</a></td><td><div class=\"range\"><a data-collect-index=\"51\" target=\"_blank\" href=\"http://www.ruoxia.com/book/45650\" targe=\"_blank\" class=\"name\">江太太,恋爱已生效</a> <a href=\"http://www.ruoxia.com/book/45650/1161174\" class=\"chapter\">江先生和江太太的恋城旧忆(三) 怀孕篇</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/5548454\" targe=\"_blank\" class=\"author\">呆小萌的包子</a></div></td><td><div>226</div></td><td><span class=\"time\">03-18 13:09</span></td></tr><tr class=\"even\"><td class=\"index\">52.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=17\" class=\"tag\" targe=\"_blank\">穿越</a></td><td><div class=\"range\"><a data-collect-index=\"52\" target=\"_blank\" href=\"http://www.ruoxia.com/book/28004\" targe=\"_blank\" class=\"name\">倾城不过未亡人</a> <a href=\"http://www.ruoxia.com/book/28004/1147278\" class=\"chapter\">楚木萧萧 第一章</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/2067719\" targe=\"_blank\" class=\"author\">慕容以泽</a></div></td><td><div>1026</div></td><td><span class=\"time\">03-08 16:28</span></td></tr><tr><td class=\"index\">53.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=47\" class=\"tag\" targe=\"_blank\">重生</a></td><td><div class=\"range\"><a data-collect-index=\"53\" target=\"_blank\" href=\"http://www.ruoxia.com/book/46534\" targe=\"_blank\" class=\"name\">重生女二嫁攻略</a> <a href=\"http://www.ruoxia.com/book/46534/1122895\" class=\"chapter\">算是完结感言吧</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/2595590\" targe=\"_blank\" class=\"author\">十七帝</a></div></td><td><div>304</div></td><td><span class=\"time\">02-19 10:25</span></td></tr><tr class=\"even\"><td class=\"index\">54.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=24\" class=\"tag\" targe=\"_blank\">玄奇</a></td><td><div class=\"range\"><a data-collect-index=\"54\" target=\"_blank\" href=\"http://www.ruoxia.com/book/42151\" targe=\"_blank\" class=\"name\">冥婚难测</a> <a href=\"http://www.ruoxia.com/book/42151/1117992\" class=\"chapter\">完结感言(有惊喜哦,戳进来看看)</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/1494532\" targe=\"_blank\" class=\"author\">鬼爹</a></div></td><td><div>2617</div></td><td><span class=\"time\">02-15 20:57</span></td></tr><tr><td class=\"index\">55.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=17\" class=\"tag\" targe=\"_blank\">穿越</a></td><td><div class=\"range\"><a data-collect-index=\"55\" target=\"_blank\" href=\"http://www.ruoxia.com/book/33600\" targe=\"_blank\" class=\"name\">傻王贤妃</a> <a href=\"http://www.ruoxia.com/book/33600/891372\" class=\"chapter\">感言</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/1249730\" targe=\"_blank\" class=\"author\">汐凉</a></div></td><td><div>199</div></td><td><span class=\"time\">09-04 19:43</span></td></tr><tr class=\"even\"><td class=\"index\">56.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=16\" class=\"tag\" targe=\"_blank\">同人</a></td><td><div class=\"range\"><a data-collect-index=\"56\" target=\"_blank\" href=\"http://www.ruoxia.com/book/30689\" targe=\"_blank\" class=\"name\">清宫瑾妃传</a> <a href=\"http://www.ruoxia.com/book/30689/832178\" class=\"chapter\">第220章 此生唯你(大结局)</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/1677848\" targe=\"_blank\" class=\"author\">芳小苓</a></div></td><td><div>768</div></td><td><span class=\"time\">07-19 20:00</span></td></tr><tr><td class=\"index\">57.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=20\" class=\"tag\" targe=\"_blank\">宅斗</a></td><td><div class=\"range\"><a data-collect-index=\"57\" target=\"_blank\" href=\"http://www.ruoxia.com/book/83309\" targe=\"_blank\" class=\"name\">庶女世子妃</a> <a href=\"http://www.ruoxia.com/book/83309/2273884\" class=\"chapter\">第一六五章 完美结局</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/3227798\" targe=\"_blank\" class=\"author\">魑魅魁魃</a></div></td><td><div>0</div></td><td><span class=\"time\">02-13 18:13</span></td></tr><tr class=\"even\"><td class=\"index\">58.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=12\" class=\"tag\" targe=\"_blank\">豪门</a></td><td><div class=\"range\"><a data-collect-index=\"58\" target=\"_blank\" href=\"http://www.ruoxia.com/book/80185\" targe=\"_blank\" class=\"name\">我曾卑微爱过你</a> <a href=\"http://www.ruoxia.com/book/80185/2135467\" class=\"chapter\">第96章 大结局</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/5321782\" targe=\"_blank\" class=\"author\">懒桔不懒</a></div></td><td><div>0</div></td><td><span class=\"time\">11-12 22:23</span></td></tr><tr><td class=\"index\">59.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=15\" class=\"tag\" targe=\"_blank\">架空</a></td><td><div class=\"range\"><a data-collect-index=\"59\" target=\"_blank\" href=\"http://www.ruoxia.com/book/74007\" targe=\"_blank\" class=\"name\">妾倾天下</a> <a href=\"http://www.ruoxia.com/book/74007/1962721\" class=\"chapter\">第162章 母仪天下(全书完)</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/14890712\" targe=\"_blank\" class=\"author\">璃璃</a></div></td><td><div>0</div></td><td><span class=\"time\">07-28 23:42</span></td></tr><tr class=\"even\"><td class=\"index\">60.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=35\" class=\"tag\" targe=\"_blank\">婚恋</a></td><td><div class=\"range\"><a data-collect-index=\"60\" target=\"_blank\" href=\"http://www.ruoxia.com/book/66546\" targe=\"_blank\" class=\"name\">纵使情深如故</a> <a href=\"http://www.ruoxia.com/book/66546/1697902\" class=\"chapter\">【175】一言不合就完结</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/1664188\" targe=\"_blank\" class=\"author\">糖小贩</a></div></td><td><div>0</div></td><td><span class=\"time\">02-03 23:09</span></td></tr><tr><td class=\"index\">61.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=12\" class=\"tag\" targe=\"_blank\">豪门</a></td><td><div class=\"range\"><a data-collect-index=\"61\" target=\"_blank\" href=\"http://www.ruoxia.com/book/59727\" targe=\"_blank\" class=\"name\">爱你,可念不可说</a> <a href=\"http://www.ruoxia.com/book/59727/1664270\" class=\"chapter\">完结感言</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/1494532\" targe=\"_blank\" class=\"author\">鬼爹</a></div></td><td><div>285</div></td><td><span class=\"time\">01-07 19:21</span></td></tr><tr class=\"even\"><td class=\"index\">62.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=47\" class=\"tag\" targe=\"_blank\">重生</a></td><td><div class=\"range\"><a data-collect-index=\"62\" target=\"_blank\" href=\"http://www.ruoxia.com/book/27946\" targe=\"_blank\" class=\"name\">美人皮,噬骨香</a> <a href=\"http://www.ruoxia.com/book/27946/1538607\" class=\"chapter\">【完结感言】</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/1311937\" targe=\"_blank\" class=\"author\">涣茶</a></div></td><td><div>654</div></td><td><span class=\"time\">10-12 18:16</span></td></tr><tr><td class=\"index\">63.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=43\" class=\"tag\" targe=\"_blank\">异能</a></td><td><div class=\"range\"><a data-collect-index=\"63\" target=\"_blank\" href=\"http://www.ruoxia.com/book/47521\" targe=\"_blank\" class=\"name\">末世之拐个系统做男神</a> <a href=\"http://www.ruoxia.com/book/47521/1319390\" class=\"chapter\">以后的日子 番外二</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/5776194\" targe=\"_blank\" class=\"author\">TK。优酱</a></div></td><td><div>617</div></td><td><span class=\"time\">06-18 20:23</span></td></tr><tr class=\"even\"><td class=\"index\">64.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=19\" class=\"tag\" targe=\"_blank\">宫斗</a></td><td><div class=\"range\"><a data-collect-index=\"64\" target=\"_blank\" href=\"http://www.ruoxia.com/book/50621\" targe=\"_blank\" class=\"name\">笑嫁江山</a> <a href=\"http://www.ruoxia.com/book/50621/1276556\" class=\"chapter\">第三百一十五章 伤怀</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/4819693\" targe=\"_blank\" class=\"author\">与文</a></div></td><td><div>27</div></td><td><span class=\"time\">06-02 21:05</span></td></tr><tr><td class=\"index\">65.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=28\" class=\"tag\" targe=\"_blank\">种田</a></td><td><div class=\"range\"><a data-collect-index=\"65\" target=\"_blank\" href=\"http://www.ruoxia.com/book/31900\" targe=\"_blank\" class=\"name\">重生之带着装备去种田</a> <a href=\"http://www.ruoxia.com/book/31900/886594\" class=\"chapter\">第一百三十五章 大结局</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/21456\" targe=\"_blank\" class=\"author\">灵山小道士</a></div></td><td><div>206</div></td><td><span class=\"time\">08-31 19:23</span></td></tr><tr class=\"even\"><td class=\"index\">66.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=20\" class=\"tag\" targe=\"_blank\">宅斗</a></td><td><div class=\"range\"><a data-collect-index=\"66\" target=\"_blank\" href=\"http://www.ruoxia.com/book/27944\" targe=\"_blank\" class=\"name\">恶毒女配的悠然生活</a> <a href=\"http://www.ruoxia.com/book/27944/847971\" class=\"chapter\">第240章 下辈子你还是我的妻(完)</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/3147647\" targe=\"_blank\" class=\"author\">翦语</a></div></td><td><div>2444</div></td><td><span class=\"time\">08-19 15:51</span></td></tr><tr><td class=\"index\">67.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=20\" class=\"tag\" targe=\"_blank\">宅斗</a></td><td><div class=\"range\"><a data-collect-index=\"67\" target=\"_blank\" href=\"http://www.ruoxia.com/book/28130\" targe=\"_blank\" class=\"name\">一品皇妻</a> <a href=\"http://www.ruoxia.com/book/28130/857549\" class=\"chapter\">第158章 大结局</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/3167696\" targe=\"_blank\" class=\"author\">七月白椿</a></div></td><td><div>818</div></td><td><span class=\"time\">08-07 23:38</span></td></tr><tr class=\"even\"><td class=\"index\">68.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=25\" class=\"tag\" targe=\"_blank\">现代</a></td><td><div class=\"range\"><a data-collect-index=\"68\" target=\"_blank\" href=\"http://www.ruoxia.com/book/95582\" targe=\"_blank\" class=\"name\">龙拳</a> <a href=\"http://www.ruoxia.com/book/95582/10698954\" class=\"chapter\">第一千八百七十章 大结局! (六千字大章)</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/19990474\" targe=\"_blank\" class=\"author\"></a></div></td><td><div>0</div></td><td><span class=\"time\">12-23 17:02</span></td></tr><tr><td class=\"index\">69.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=1\" class=\"tag\" targe=\"_blank\">玄奇</a></td><td><div class=\"range\"><a data-collect-index=\"69\" target=\"_blank\" href=\"http://www.ruoxia.com/book/95598\" targe=\"_blank\" class=\"name\">民调局异闻录之勉传</a> <a href=\"http://www.ruoxia.com/book/95598/10384052\" class=\"chapter\">第四百一十七章 归宿</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/19990495\" targe=\"_blank\" class=\"author\"></a></div></td><td><div>0</div></td><td><span class=\"time\">07-23 12:00</span></td></tr><tr class=\"even\"><td class=\"index\">70.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=35\" class=\"tag\" targe=\"_blank\">婚恋</a></td><td><div class=\"range\"><a data-collect-index=\"70\" target=\"_blank\" href=\"http://www.ruoxia.com/book/69929\" targe=\"_blank\" class=\"name\">原来爱你那么伤</a> <a href=\"http://www.ruoxia.com/book/69929/2105024\" class=\"chapter\">嘿,还有宝贝在吗?</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/5209133\" targe=\"_blank\" class=\"author\">依人茶</a></div></td><td><div>0</div></td><td><span class=\"time\">11-01 16:43</span></td></tr><tr><td class=\"index\">71.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=12\" class=\"tag\" targe=\"_blank\">豪门</a></td><td><div class=\"range\"><a data-collect-index=\"71\" target=\"_blank\" href=\"http://www.ruoxia.com/book/78853\" targe=\"_blank\" class=\"name\">情深如许:霸道总裁我不约</a> <a href=\"http://www.ruoxia.com/book/78853/2029552\" class=\"chapter\">谢谢大家,新书求收藏</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/16083833\" targe=\"_blank\" class=\"author\">余无晴</a></div></td><td><div>0</div></td><td><span class=\"time\">09-12 00:01</span></td></tr><tr class=\"even\"><td class=\"index\">72.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=15\" class=\"tag\" targe=\"_blank\">架空</a></td><td><div class=\"range\"><a data-collect-index=\"72\" target=\"_blank\" href=\"http://www.ruoxia.com/book/74481\" targe=\"_blank\" class=\"name\">戾妃倾城</a> <a href=\"http://www.ruoxia.com/book/74481/1823456\" class=\"chapter\">番外1 几经辗转,故人坟草三尺高</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/14543004\" targe=\"_blank\" class=\"author\">凌家女孩</a></div></td><td><div>0</div></td><td><span class=\"time\">04-27 22:42</span></td></tr><tr><td class=\"index\">73.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=12\" class=\"tag\" targe=\"_blank\">豪门</a></td><td><div class=\"range\"><a data-collect-index=\"73\" target=\"_blank\" href=\"http://www.ruoxia.com/book/71766\" targe=\"_blank\" class=\"name\">婚久情深:闪婚娇妻深深爱</a> <a href=\"http://www.ruoxia.com/book/71766/1809712\" class=\"chapter\">第二十二章 大结局(完)</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/2079910\" targe=\"_blank\" class=\"author\">杨家小呆</a></div></td><td><div>0</div></td><td><span class=\"time\">04-19 13:55</span></td></tr><tr class=\"even\"><td class=\"index\">74.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=43\" class=\"tag\" targe=\"_blank\">异能</a></td><td><div class=\"range\"><a data-collect-index=\"74\" target=\"_blank\" href=\"http://www.ruoxia.com/book/47956\" targe=\"_blank\" class=\"name\">末世重生之女配归来</a> <a href=\"http://www.ruoxia.com/book/47956/1391378\" class=\"chapter\">第98章</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/5862910\" targe=\"_blank\" class=\"author\">慕晓玥</a></div></td><td><div>62</div></td><td><span class=\"time\">07-30 00:00</span></td></tr><tr><td class=\"index\">75.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=17\" class=\"tag\" targe=\"_blank\">穿越</a></td><td><div class=\"range\"><a data-collect-index=\"75\" target=\"_blank\" href=\"http://www.ruoxia.com/book/49277\" targe=\"_blank\" class=\"name\">皇帝你被征用了</a> <a href=\"http://www.ruoxia.com/book/49277/1373550\" class=\"chapter\">新书准备ing</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/6052301\" targe=\"_blank\" class=\"author\">乔沫若轩</a></div></td><td><div>1307</div></td><td><span class=\"time\">07-20 16:41</span></td></tr><tr class=\"even\"><td class=\"index\">76.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=24\" class=\"tag\" targe=\"_blank\">玄奇</a></td><td><div class=\"range\"><a data-collect-index=\"76\" target=\"_blank\" href=\"http://www.ruoxia.com/book/52370\" targe=\"_blank\" class=\"name\">道士房东,快开门</a> <a href=\"http://www.ruoxia.com/book/52370/1366506\" class=\"chapter\">第六百七十章 姓什么</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/5058618\" targe=\"_blank\" class=\"author\">佚之狐</a></div></td><td><div>12820</div></td><td><span class=\"time\">07-15 23:46</span></td></tr><tr><td class=\"index\">77.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=15\" class=\"tag\" targe=\"_blank\">架空</a></td><td><div class=\"range\"><a data-collect-index=\"77\" target=\"_blank\" href=\"http://www.ruoxia.com/book/43341\" targe=\"_blank\" class=\"name\">欠你一世长安</a> <a href=\"http://www.ruoxia.com/book/43341/1282888\" class=\"chapter\">【免费公告】新书《如果爱情看得见》求支持</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/4950247\" targe=\"_blank\" class=\"author\">南风知意</a></div></td><td><div>828</div></td><td><span class=\"time\">06-06 17:54</span></td></tr><tr class=\"even\"><td class=\"index\">78.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=20\" class=\"tag\" targe=\"_blank\">宅斗</a></td><td><div class=\"range\"><a data-collect-index=\"78\" target=\"_blank\" href=\"http://www.ruoxia.com/book/45958\" targe=\"_blank\" class=\"name\">鬓云香腮雪</a> <a href=\"http://www.ruoxia.com/book/45958/1256794\" class=\"chapter\">番外 倾心。(秦相宜&太子)</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/5575980\" targe=\"_blank\" class=\"author\">萌七妹</a></div></td><td><div>985</div></td><td><span class=\"time\">05-20 23:53</span></td></tr><tr><td class=\"index\">79.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=24\" class=\"tag\" targe=\"_blank\">玄奇</a></td><td><div class=\"range\"><a data-collect-index=\"79\" target=\"_blank\" href=\"http://www.ruoxia.com/book/39183\" targe=\"_blank\" class=\"name\">一纸冥婚</a> <a href=\"http://www.ruoxia.com/book/39183/1198169\" class=\"chapter\">关于番外+新书</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/4782768\" targe=\"_blank\" class=\"author\">二手玫瑰</a></div></td><td><div>4960</div></td><td><span class=\"time\">04-12 15:58</span></td></tr><tr class=\"even\"><td class=\"index\">80.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=24\" class=\"tag\" targe=\"_blank\">玄奇</a></td><td><div class=\"range\"><a data-collect-index=\"80\" target=\"_blank\" href=\"http://www.ruoxia.com/book/46118\" targe=\"_blank\" class=\"name\">阴夫驾到</a> <a href=\"http://www.ruoxia.com/book/46118/1140031\" class=\"chapter\">第一六零话 最后的决战(结局篇)</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/2077970\" targe=\"_blank\" class=\"author\">洛紫晴</a></div></td><td><div>245</div></td><td><span class=\"time\">03-02 23:11</span></td></tr><tr><td class=\"index\">81.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=20\" class=\"tag\" targe=\"_blank\">宅斗</a></td><td><div class=\"range\"><a data-collect-index=\"81\" target=\"_blank\" href=\"http://www.ruoxia.com/book/39812\" targe=\"_blank\" class=\"name\">美人鬓</a> <a href=\"http://www.ruoxia.com/book/39812/1046332\" class=\"chapter\">完本公告</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/4819693\" targe=\"_blank\" class=\"author\">与文</a></div></td><td><div>34</div></td><td><span class=\"time\">12-21 10:11</span></td></tr><tr class=\"even\"><td class=\"index\">82.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=20\" class=\"tag\" targe=\"_blank\">宅斗</a></td><td><div class=\"range\"><a data-collect-index=\"82\" target=\"_blank\" href=\"http://www.ruoxia.com/book/28007\" targe=\"_blank\" class=\"name\">妻居一品</a> <a href=\"http://www.ruoxia.com/book/28007/834007\" class=\"chapter\">第259章 墩仔和淼淼(四)【大结局】</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/3154400\" targe=\"_blank\" class=\"author\">沙提子</a></div></td><td><div>1411</div></td><td><span class=\"time\">07-21 00:00</span></td></tr><tr><td class=\"index\">83.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=25\" class=\"tag\" targe=\"_blank\">现代</a></td><td><div class=\"range\"><a data-collect-index=\"83\" target=\"_blank\" href=\"http://www.ruoxia.com/book/95617\" targe=\"_blank\" class=\"name\">女总裁的超级高手</a> <a href=\"http://www.ruoxia.com/book/95617/10401594\" class=\"chapter\">第3609章、这样挺好!(大结局下)</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/19990521\" targe=\"_blank\" class=\"author\"></a></div></td><td><div>0</div></td><td><span class=\"time\">07-31 10:10</span></td></tr><tr class=\"even\"><td class=\"index\">84.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=1\" class=\"tag\" targe=\"_blank\">玄奇</a></td><td><div class=\"range\"><a data-collect-index=\"84\" target=\"_blank\" href=\"http://www.ruoxia.com/book/89974\" targe=\"_blank\" class=\"name\">活见诡</a> <a href=\"http://www.ruoxia.com/book/89974/2452074\" class=\"chapter\">第三十六章 威风凌凌</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/19016569\" targe=\"_blank\" class=\"author\">一骑妃子笑</a></div></td><td><div>0</div></td><td><span class=\"time\">06-18 13:53</span></td></tr><tr><td class=\"index\">85.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=15\" class=\"tag\" targe=\"_blank\">架空</a></td><td><div class=\"range\"><a data-collect-index=\"85\" target=\"_blank\" href=\"http://www.ruoxia.com/book/78680\" targe=\"_blank\" class=\"name\">压寨夫君请上轿</a> <a href=\"http://www.ruoxia.com/book/78680/2168844\" class=\"chapter\">103 我说了,我已经嫁过人了 大结局</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/5724868\" targe=\"_blank\" class=\"author\">唯水眠心</a></div></td><td><div>0</div></td><td><span class=\"time\">12-03 23:41</span></td></tr><tr class=\"even\"><td class=\"index\">86.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=1\" class=\"tag\" targe=\"_blank\">玄奇</a></td><td><div class=\"range\"><a data-collect-index=\"86\" target=\"_blank\" href=\"http://www.ruoxia.com/book/83856\" targe=\"_blank\" class=\"name\">九命</a> <a href=\"http://www.ruoxia.com/book/83856/2160919\" class=\"chapter\">第045章 柳家的秘密</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/2547718\" targe=\"_blank\" class=\"author\">渴雨</a></div></td><td><div>0</div></td><td><span class=\"time\">11-28 22:13</span></td></tr><tr><td class=\"index\">87.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=12\" class=\"tag\" targe=\"_blank\">豪门</a></td><td><div class=\"range\"><a data-collect-index=\"87\" target=\"_blank\" href=\"http://www.ruoxia.com/book/79904\" targe=\"_blank\" class=\"name\">暖婚契约:腹黑总裁的呆萌妻</a> <a href=\"http://www.ruoxia.com/book/79904/2128055\" class=\"chapter\">【118】大结局</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/15919521\" targe=\"_blank\" class=\"author\">落小妹</a></div></td><td><div>0</div></td><td><span class=\"time\">11-07 22:48</span></td></tr><tr class=\"even\"><td class=\"index\">88.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=35\" class=\"tag\" targe=\"_blank\">婚恋</a></td><td><div class=\"range\"><a data-collect-index=\"88\" target=\"_blank\" href=\"http://www.ruoxia.com/book/77693\" targe=\"_blank\" class=\"name\">眷你如火如荼</a> <a href=\"http://www.ruoxia.com/book/77693/2010568\" class=\"chapter\">【终章】、经年后,道一句好久不见</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/6095530\" targe=\"_blank\" class=\"author\">粟越</a></div></td><td><div>0</div></td><td><span class=\"time\">08-29 23:15</span></td></tr><tr><td class=\"index\">89.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=28\" class=\"tag\" targe=\"_blank\">种田</a></td><td><div class=\"range\"><a data-collect-index=\"89\" target=\"_blank\" href=\"http://www.ruoxia.com/book/45352\" targe=\"_blank\" class=\"name\">女儿香满田</a> <a href=\"http://www.ruoxia.com/book/45352/1998240\" class=\"chapter\">新文《爱有余温,触手可及》</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/1412126\" targe=\"_blank\" class=\"author\">冷在</a></div></td><td><div>1831</div></td><td><span class=\"time\">08-21 16:38</span></td></tr><tr class=\"even\"><td class=\"index\">90.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=12\" class=\"tag\" targe=\"_blank\">豪门</a></td><td><div class=\"range\"><a data-collect-index=\"90\" target=\"_blank\" href=\"http://www.ruoxia.com/book/74771\" targe=\"_blank\" class=\"name\">千万婚约:求你放了我!</a> <a href=\"http://www.ruoxia.com/book/74771/1936113\" class=\"chapter\">【112】</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/12820436\" targe=\"_blank\" class=\"author\">纳兰一梦</a></div></td><td><div>0</div></td><td><span class=\"time\">07-11 21:25</span></td></tr><tr><td class=\"index\">91.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=12\" class=\"tag\" targe=\"_blank\">豪门</a></td><td><div class=\"range\"><a data-collect-index=\"91\" target=\"_blank\" href=\"http://www.ruoxia.com/book/73591\" targe=\"_blank\" class=\"name\">虐爱成殇:冷傲总裁太绝情</a> <a href=\"http://www.ruoxia.com/book/73591/1892707\" class=\"chapter\">第138章 小玥,我爱你,你愿意嫁给我吗?</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/15011710\" targe=\"_blank\" class=\"author\">古月初雪</a></div></td><td><div>0</div></td><td><span class=\"time\">06-13 15:37</span></td></tr><tr class=\"even\"><td class=\"index\">92.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=12\" class=\"tag\" targe=\"_blank\">豪门</a></td><td><div class=\"range\"><a data-collect-index=\"92\" target=\"_blank\" href=\"http://www.ruoxia.com/book/71367\" targe=\"_blank\" class=\"name\">总裁的替身小萌妻</a> <a href=\"http://www.ruoxia.com/book/71367/1838552\" class=\"chapter\">178·尾声</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/366099\" targe=\"_blank\" class=\"author\">沈乔</a></div></td><td><div>0</div></td><td><span class=\"time\">05-07 22:10</span></td></tr><tr><td class=\"index\">93.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=12\" class=\"tag\" targe=\"_blank\">豪门</a></td><td><div class=\"range\"><a data-collect-index=\"93\" target=\"_blank\" href=\"http://www.ruoxia.com/book/71221\" targe=\"_blank\" class=\"name\">早安,小甜妻</a> <a href=\"http://www.ruoxia.com/book/71221/1733121\" class=\"chapter\">第71章:大结局(完)</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/14303346\" targe=\"_blank\" class=\"author\">星辉熠熠</a></div></td><td><div>0</div></td><td><span class=\"time\">02-28 00:01</span></td></tr><tr class=\"even\"><td class=\"index\">94.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=12\" class=\"tag\" targe=\"_blank\">豪门</a></td><td><div class=\"range\"><a data-collect-index=\"94\" target=\"_blank\" href=\"http://www.ruoxia.com/book/60151\" targe=\"_blank\" class=\"name\">娇妻休逃</a> <a href=\"http://www.ruoxia.com/book/60151/1632790\" class=\"chapter\">第326章 我带你飞(大结局)</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/5625273\" targe=\"_blank\" class=\"author\">九竹</a></div></td><td><div>304</div></td><td><span class=\"time\">12-16 07:30</span></td></tr><tr><td class=\"index\">95.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=35\" class=\"tag\" targe=\"_blank\">婚恋</a></td><td><div class=\"range\"><a data-collect-index=\"95\" target=\"_blank\" href=\"http://www.ruoxia.com/book/54317\" targe=\"_blank\" class=\"name\">宋先生,我的爱情已过期</a> <a href=\"http://www.ruoxia.com/book/54317/1578696\" class=\"chapter\">完结感言+新书速递《给我一场盛宴,纪念你离开》</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/868367\" targe=\"_blank\" class=\"author\">流年mengo</a></div></td><td><div>669</div></td><td><span class=\"time\">11-07 18:16</span></td></tr><tr class=\"even\"><td class=\"index\">96.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=7\" class=\"tag\" targe=\"_blank\">仙侠</a></td><td><div class=\"range\"><a data-collect-index=\"96\" target=\"_blank\" href=\"http://www.ruoxia.com/book/61509\" targe=\"_blank\" class=\"name\">神君快到碗里来</a> <a href=\"http://www.ruoxia.com/book/61509/1512646\" class=\"chapter\">110.最美是回忆</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/8528296\" targe=\"_blank\" class=\"author\">柒月绯然</a></div></td><td><div>54</div></td><td><span class=\"time\">09-25 19:51</span></td></tr><tr><td class=\"index\">97.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=12\" class=\"tag\" targe=\"_blank\">豪门</a></td><td><div class=\"range\"><a data-collect-index=\"97\" target=\"_blank\" href=\"http://www.ruoxia.com/book/58932\" targe=\"_blank\" class=\"name\">我爱你,与你无关</a> <a href=\"http://www.ruoxia.com/book/58932/1444784\" class=\"chapter\">大结局</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/10048716\" targe=\"_blank\" class=\"author\">南有木木</a></div></td><td><div>655</div></td><td><span class=\"time\">08-31 13:02</span></td></tr><tr class=\"even\"><td class=\"index\">98.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=54\" class=\"tag\" targe=\"_blank\">现实</a></td><td><div class=\"range\"><a data-collect-index=\"98\" target=\"_blank\" href=\"http://www.ruoxia.com/book/55800\" targe=\"_blank\" class=\"name\">你与时光皆薄凉</a> <a href=\"http://www.ruoxia.com/book/55800/1340844\" class=\"chapter\">完结感言</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/6517325\" targe=\"_blank\" class=\"author\">七寸南季</a></div></td><td><div>374</div></td><td><span class=\"time\">06-29 09:55</span></td></tr><tr><td class=\"index\">99.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=17\" class=\"tag\" targe=\"_blank\">穿越</a></td><td><div class=\"range\"><a data-collect-index=\"99\" target=\"_blank\" href=\"http://www.ruoxia.com/book/48522\" targe=\"_blank\" class=\"name\">夫君,你别跑</a> <a href=\"http://www.ruoxia.com/book/48522/1320612\" class=\"chapter\">完结了,完结了</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/5209133\" targe=\"_blank\" class=\"author\">依人茶</a></div></td><td><div>373</div></td><td><span class=\"time\">06-19 18:07</span></td></tr><tr class=\"even\"><td class=\"index\">100.</td><td><a target=\"_blank\" href=\"http://www.ruoxia.com/all?sort=35\" class=\"tag\" targe=\"_blank\">婚恋</a></td><td><div class=\"range\"><a data-collect-index=\"100\" target=\"_blank\" href=\"http://www.ruoxia.com/book/52762\" targe=\"_blank\" class=\"name\">彼年豆蔻,白首不离</a> <a href=\"http://www.ruoxia.com/book/52762/1280140\" class=\"chapter\">第一百四十二章大结局</a></div></td><td><div class=\"range\"><a target=\"_blank\" href=\"http://www.ruoxia.com/people/5672126\" targe=\"_blank\" class=\"author\">梅花香雨</a></div></td><td><div>159</div></td><td><span class=\"time\">06-04 21:05</span></td></tr></tbody></table></div></div></div><div class=\"c-right\"><div class=\"c-right\"><div class=\"mod mod-block sidebar-menu\"><div class=\"hd\"><h5><span>排行榜</span></h5></div><div class=\"bd\"><ul><li id=\"monthly\"><a href=\"http://www.ruoxia.com/top/monthly/day?rank=13\">钻石榜</a></li><li id=\"dianji\" class=\"active\"><a href=\"http://www.ruoxia.com/top/dianji/day\">点击榜</a></li><li id=\"tuijian\"><a href=\"http://www.ruoxia.com/top/tuijian/day?rank=3\">推荐榜</a></li><li id=\"xinshu\"><a href=\"http://www.ruoxia.com/top/xinshu/day\">新书榜</a></li><li id=\"pengchang\"><a href=\"http://www.ruoxia.com/top/pengchang/day\">捧场榜</a></li><li id=\"finishding\"><a href=\"http://www.ruoxia.com/top/finishding/day\">完本订阅榜</a></li><li id=\"wbTuijian\"><a href=\"http://www.ruoxia.com/top/wbTuijian/day?rank=16\">完本推荐榜</a></li><li id=\"wbMonthly\"><a href=\"http://www.ruoxia.com/top/wbMonthly/day?rank=17\">完本钻石榜</a></li></ul></div></div></div></div></div></div>";
1492
1493 @Test
1494 public void testStringAPI() {
1495
1496 List<String> items = new Xpath2Selector("//div[@class=\"bd\"]//tbody/tr").selectList(rank);
1497 Assert.assertSame(100, items.size());
1498
1499 String name = new Xpath2Selector("//td[3]/div/a[1]/text()").select(items.get(10));
1500 Assert.assertEquals("深宫安容传", name);
1501 }
1502
1503 @Test
1504 public void testNodeAPI() {
1505
1506 List<Node> items = new Xpath2Selector("//div[@class=\"bd\"]//tbody/tr").selectNodes(rank);
1507 Assert.assertSame(100, items.size());
1508
1509 Node item = new Xpath2Selector("./td[3]/div/a[1]").selectNode(items.get(10));
1510 String name = new Xpath2Selector("./text()").select(item);
1511 Assert.assertEquals("深宫安容传", name);
1512 }
1513
1514 @Test
1515 public void testUtilAPI() throws TransformerException {
1516 Node item = Xpath2Selector.newInstance("//div[@class=\"bd\"]//tbody/tr[11]/td[3]/div/a[1]/text()").selectNode(rank);
1517
1518 String name = JaxpSelectorUtils.nodeToString(item);
1519 Assert.assertEquals("深宫安容传", name);
1520 }
1521
1522 }