fancybox传递参数
<td><a href="javascript:edit('${gL.scrap_id }')" id="findPic">查看图片</a> </td>
function edit(id){
$("#findPic").fancybox({
'href' : '${pageContext.request.contextPath }/xxx?scrap_id='+id+'&num=2',
'width' : 733,
'height' : 530,
'type' : 'iframe',
'hideOnOverlayClick' : false,
'showCloseButton' : false,
'onClosed' : function() {
window.location.href = '${pageContext.request.contextPath }/xxx ';
}
});
$("#findPic").click();
}