显示列表时 在列表内显示图片

 1 <td id="td_${hmlwxClassification.id}">
 2                     <script type="text/javascript">
 3                         var classificationPic='${hmlwxClassification.classificationPic}';
 4                         if(classificationPic){
 5                             var $img = $('<img id="Img_${hmlwxClassification.id}" style="width:100%;height:100%;max-width:80px;max-height:60px;" src="" />');
 6                             $img.attr("src",'${ctn}'+classificationPic);
 7                             $("#td_${hmlwxClassification.id}").append($img);
 8                         }
 9                     </script>
10 </td>

 

posted @ 2017-06-15 13:55  陈东的博客  阅读(619)  评论(0编辑  收藏  举报