[asp]代码库
<% for(var i=0,len=data.length;i<len;i++){ %>
<%var status="disabled";%>
<% if(i==0){%>
<%status="current";%>
<%}%>
<%var docList=data[i]["related_doc_infos"];%>
<table class="<%=status%>">
<tbody alog-group="view.strurecom.doc">
<%for (var j=0,n=docList.length;j<n;j++){%>
<tr>
<td class="txtL doc-title"><b class="ic ic-<%=docType[docList[j]['doc_type']].toString()%>"></b><a href="http://wenku.baidu.com/view/<%=docList[j]['doc_id']%>.html" target="_blank" class="logSend log-xsend" data-logsend="{'send':['view','doc_link',{'from':'srs','tag_no':'<%=(i+1)%>','ply':'html','doc_srs_strategy':'<%=doc_srs_strategy%>','doc_srs_tag':'<%=doc_srs_tag%>'}]}" data-logxsend="[1,100029,{'index':'<%=j%>','click_doc_id':'<%=docList[j]['doc_id']%>'}]" title="<%=util.encodeHTML(docList[j].title)%>"><%=util.cutString(docList[j].title,25,'...')%></a></td>
<td class="txtL doc-value">
<%if(docList[j].value>0){%>
<%=util.star(docList[j].value/2,'s')%>
<%}else{%>
暂无评价
<%}%>
</td>
<td class="txtL doc-page-num"><%=docList[j]['page_num']%>页</td>
<td class="txtL doc-price"><%=util.priceText(docList[j])%></td>
</tr>
<%}%>
</tbody>
<tfoot>
<td class="list-more" colspan="4"><a href="http://www.baidu.com/s?cl=2&ct=1&rn=20&sp=hotquery&tn=SE_hldp01140_5wd91n5d&word=<%=data[i]['tag_name']%>" target="_blank" class="logSend log-xsend" data-logxsend='[1, 100180]' data-logsend="{'send':['view','more_link',{'from':'srs','tag_no':'<%=(i+1)%>','ply':'html','doc_srs_strategy':'<%=doc_srs_strategy%>','doc_srs_tag':'<%=doc_srs_tag%>'}]}">更多与“<span><%=data[i]['tag_name']%></span>”相关的内容>></a></td>
</tfoot>
</table>
<%}%>
by: 发表于:2017-11-02 09:49:07 顶(0) | 踩(0) 回复
??
回复评论