fancybox传递参数

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();
    }


猜你喜欢

转载自blog.csdn.net/weixin_43887789/article/details/89281870