Copy Code code as follows:
$ (document). Ready (function () {
$ ("#Email tr"). each (function () {
var objstring =$ (this). Children ("#Emailtd"). Text ();
if (objstring.length>46) {
objstring=$ (This). Children ("#Emailtd"). Text (objstring.substring (0,46) + "...")
}
});
});
Copy Code code as follows:
<pre code_snippet_id= "186521" snippet_file_name= "blog_20140213_2_9981621" name= "code" class= "HTML" > <tbody Id= "Email" >
<c:foreach items= "${warns}" var= "Warn" >
<tr ></pre><pre code_snippet_id= "186521" snippet_file_name= "blog_20140213_3_5314559" name= "code" class= "HTML" >//in order to look at the simple highlight theme, ... Instead of useless
<td>${... }</td>
<td>${... }</td>
<td>${... }</td>
<td>${... }/></td>
<td>${... }</td>
<TD id= "Emailtd" >${warn.mail}</td>
<td>${... }</td>
</tr>
</c:forEach>
</tbody></pre><pre code_snippet_id= "186521" snippet_file_name= "blog_20140213_3_5314559" code "class=" HTML ><pre code_snippet_id= "186521" snippet_file_name= "blog_20140213_3_5314559" ></pre>
<pre></pre>
<pre></pre>
<pre></pre>
<pre></pre>
<pre></pre>
</pre>