jQuery.imageView 图片查看器

test

$('#btn-1').on('click', function(e){
	$.fn.ImageView('./images/a3.png');
});

$('#btn-2').on('click', function(e){
	$.fn.ImageView({src: './images/a1.png', caption: '(object) ./images/a1.png'});
});

$('#btn-3').on('click', function(e){
	$.fn.ImageView(['images/a1.png', 'images/a2.png', 'images/a6.png']);
});

$('#btn-4').on('click', function(e){
	var imgList = [
		{src: './images/a1.png', caption: '(array) ./images/a1.png'},
		{src: './images/a2.png', caption: '(array) ./images/a2.png'},
		{src: './images/a3.png', caption: '(array) ./images/a3.png'},
		{src: './images/a4.png', caption: '(array) ./images/a4.png'},
		{src: './images/a5.png', caption: '(array) ./images/a5.png'}
	];
	$.fn.ImageView(imgList);
});

$('#btn-5').on('click', function(e){
	var imgList = {
		"status": 1,
		"data": [
			{
				"alt": "(response object) ./images/a1.png",
				"pid": 109,
				"src": "./images/a1.png",
				"thumb": ""
			},
			{
				"alt": "(response object) ./images/a2.png",
				"pid": 110,
				"src": "./images/a2.png",
				"thumb": ""
			},
			{
				"alt": "(response object) ./images/a3.png",
				"pid": 111,
				"src": "./images/a3.png",
				"thumb": ""
			},
			{
				"alt": "(response object) ./images/a4.png",
				"pid": 112,
				"src": "./images/a4.png",
				"thumb": ""
			},
			{
				"alt": "(response object) ./images/a5.png",
				"pid": 113,
				"src": "./images/a5.png",
				"thumb": ""
			}
		]
	};

	imgList = {
		"status": 1,
		"data": [{
			"name": "开票信息",
			"src": "http:///shebao-files.oss-cn-shenzhen.aliyuncs.com/pro/files/9ddd76b3-e021-4320-a8df-0ed0a77ff2e0.png",
			"thumb": "http:///shebao-files.oss-cn-shenzhen.aliyuncs.com/pro/files/9ddd76b3-e021-4320-a8df-0ed0a77ff2e0.png"
		}, {
			"name": "一般纳税人资质认定表",
			"pid": 0,
			"src": "http:///shebao-files.oss-cn-shenzhen.aliyuncs.com/pro/files/e4c2169a-10ec-4bba-b837-a55e9af3f752.jpg",
			"thumb": "http:///shebao-files.oss-cn-shenzhen.aliyuncs.com/pro/files/e4c2169a-10ec-4bba-b837-a55e9af3f752.jpg"
		}]
	};
	$.fn.ImageView(imgList);
});