图片控件U.MD.UI.Picture
调用方法
U.MD.UI.Picture(arr,num);
参数一:数组 (可支持纯数组和对象数组)
参数二:数字(跳转到指定的图片位置[从0开始数])
调用控件
U.UF.DL.asynLoadJs({ type: "text/javascript", src: "http://www.1473.cn/js/Controls/Basic/Picture.js" });
U.UF.DL.asynLoadCss({ "href": "http://www.1473.cn/css/Controls/Basic/Picture.css", type: "text/css", rel: "stylesheet" })
纯数组模板:
U.MD.UI.Picture(arr1)
['http://api.1473.cn/Image/Disk/banner背景.png',
'http://api.1473.cn/Image/Disk/banner图片.png',
'http://api.1473.cn/Image/Disk/logo.png',
'http://api.1473.cn/Image/Disk/案例图片.png',
'http://api.1473.cn/Image/Disk/步骤二.png',
'http://api.1473.cn/Image/Disk/步骤三.png',]
对象数组模板
U.MD.UI.Picture(arr2, 1)
[{size: '283.03K', src: 'http://www.1473.cn/js/Image/img/1.jpg'},
{size: '213.01K',src: 'http://www.1473.cn/js/Image/img/2.jpg'},
{size: '346.67K', src: 'http://www.1473.cn/js/Image/img/3.jpg'},
{size: '95.17K', src: 'http://www.1473.cn/js/Image/img/4.jpg'},
{size: '122.28K',src: 'http://www.1473.cn/js/Image/img/5.jpeg'},
{size: '17.14K', src: 'http://www.1473.cn/js/Image/img/6.jpg'}]
目前键名写死!!!