<div style="width:100%;background-color: #61b832;border-radius: 10px;color:white;text-align: center">Videos List</div>
<table style="width:100%;"id="videoTable">
<c:forEach items="${requestScope.userInfo.videoList}"var="video"varStatus="0">
<script>
var fullvideoUrl='<c:out value="${video.videoUrl}"></c:out>';
var videocode='http://www.youtube.com/embed/'+youtube_parser(fullvideoUrl);
$('#videoTable').prepend('<tr class="appendVideo"><td style="width:80%;border-bottom: 1px solid #CCC;"><c:out value="${video.videoDescription}"></c:out></td><td style="width:20%;border-bottom: 1px solid #CCC"><img src="images/fancybox_play-button-icon.png" class="changeVideo" videoId="<c:out value="${video.videoId}"></c:out>" videoUrl ="'+videocode+'"/></td></tr>');
</script>
</c:forEach>
</table>
</div>
这就是我正在尝试做的,但每个视频都会在表格中添加两次