最近Android项目中有一些Activity中有使用WebView,从而出现了ANR和OOM的问题。下面是webview加载的页面的一些代码:
<c:forEach items="${fpList}" var="fp">
<div class="financial">
<ul class="financial_inner">
<li class="portrait">
<p>
<img src="${fp.fpHeadImgUrl}"/>
</p> <site>${fp.nickName}</site></li>
<li class="data">
<div class="letter" οnclick="sendMessage('${fp.fpOpenId}');">
<i>私信<span><img src="<%=basePath%>/resources/images/letter.png" />
</span>
</i>
</div>
<c:if test="${fp.isChief eq '0'}">
<div class="honour" id="${fp.fpOpenId}"
οnclick="setTop('${fp.fpOp