使用httpclient 抓取页面 抓取的源码中含有java代码 该怎么解决啊
如下面这样的代码里面的参数<%:=BID.Commafy(item.all_agv)%>可以取到吗<%if(!items||!items.length){%><%:=BI...
如下面这样的代码
里面的参数 <%:=BID.Commafy(item.all_agv)%>
可以取到吗
<%if(!items || !items.length){ %><%:=BID.sTips['noDataP']%><%return;}%>
<table class="mtable">
<tr>
<th> </th>
<th><div class="lrRadius"><div class="lrRl"></div><div class="lrRc">
整体搜索指数<span class="tsp">|</span>移动搜索指数
</div><div class="lrRr"></div></div></th>
<th><div class="lrRadius"><div class="lrRl"></div><div class="lrRc">
整体同比<span class="tsp">|</span>整体环比
</div><div class="lrRr"></div></div></th>
<th><div class="lrRadius"><div class="lrRl"></div><div class="lrRc">
移动同比<span class="tsp">|</span>移动环比
</div><div class="lrRr"></div></div></th>
</tr>
<%
for(var i = 0, iLen = items.length; i < iLen; i++){
var item = items[i];
%>
<tr>
<td class="tpWord"><div class="toe" style="color:<%=BID.getColor(i)%>;" title="<%=item.word%>"><%=item.word%></div></td>
<td><div class="lrRadius">
<span class="ftlwhf"><%:=BID.Commafy(item.all_agv)%></span>
<span class="ftlwhf"><%:=BID.Commafy(item.wise_agv)%></span>
</div></td>
<td><div class="lrRadius">
<span class="ftlwhf"><span class="<%=BID.rat_0(item.all_yoy)%>"><%:=BID.Rommafy(item.all_yoy, '%')%></span></span>
<span class="ftlwhf"><span class="<%=BID.rat_0(item.all_qoq)%>"><%:=BID.Rommafy(item.all_qoq, '%')%></span></span>
</div></td>
<td><div class="lrRadius">
<span class="ftlwhf"><span class="<%=BID.rat_0(item.wise_yoy)%>"><%:=BID.Rommafy(item.wise_yoy, '%')%></span></span>
<span class="ftlwhf"><span class="<%=BID.rat_0(item.wise_qoq)%>"><%:=BID.Rommafy(item.wise_qoq, '%')%></span></span>
</div></td>
</tr>
<%
}
%> 展开
里面的参数 <%:=BID.Commafy(item.all_agv)%>
可以取到吗
<%if(!items || !items.length){ %><%:=BID.sTips['noDataP']%><%return;}%>
<table class="mtable">
<tr>
<th> </th>
<th><div class="lrRadius"><div class="lrRl"></div><div class="lrRc">
整体搜索指数<span class="tsp">|</span>移动搜索指数
</div><div class="lrRr"></div></div></th>
<th><div class="lrRadius"><div class="lrRl"></div><div class="lrRc">
整体同比<span class="tsp">|</span>整体环比
</div><div class="lrRr"></div></div></th>
<th><div class="lrRadius"><div class="lrRl"></div><div class="lrRc">
移动同比<span class="tsp">|</span>移动环比
</div><div class="lrRr"></div></div></th>
</tr>
<%
for(var i = 0, iLen = items.length; i < iLen; i++){
var item = items[i];
%>
<tr>
<td class="tpWord"><div class="toe" style="color:<%=BID.getColor(i)%>;" title="<%=item.word%>"><%=item.word%></div></td>
<td><div class="lrRadius">
<span class="ftlwhf"><%:=BID.Commafy(item.all_agv)%></span>
<span class="ftlwhf"><%:=BID.Commafy(item.wise_agv)%></span>
</div></td>
<td><div class="lrRadius">
<span class="ftlwhf"><span class="<%=BID.rat_0(item.all_yoy)%>"><%:=BID.Rommafy(item.all_yoy, '%')%></span></span>
<span class="ftlwhf"><span class="<%=BID.rat_0(item.all_qoq)%>"><%:=BID.Rommafy(item.all_qoq, '%')%></span></span>
</div></td>
<td><div class="lrRadius">
<span class="ftlwhf"><span class="<%=BID.rat_0(item.wise_yoy)%>"><%:=BID.Rommafy(item.wise_yoy, '%')%></span></span>
<span class="ftlwhf"><span class="<%=BID.rat_0(item.wise_qoq)%>"><%:=BID.Rommafy(item.wise_qoq, '%')%></span></span>
</div></td>
</tr>
<%
}
%> 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询