# html:
<div class="container" node-type="container" style="position:relative;width:320px;height:215px;">
<div style="position:absolute;top:0;left:0;">ert</div>
</div>
# js:
var arr = [
{
src: '//mstore.b0.upaiyun.com/seller_goods_collection/20160804/97947/15191457a2ec726c3ed.png!w320',
},
{
src: '//mstore.b0.upaiyun.com/seller_goods_collection/20160829/97947/18323857c40f46eed30.png!w320',
href: ''
},
{
src: '//mstore.b0.upaiyun.com/seller_goods_collection/20160808/97947/18203257a85cf05360f.png!w320',
href: 'www.baidu.com'
}
]
# 方法一:
$('[node-type="container"]').carousel({
arr: arr,
})
# 方法二:
carousel({
name: $('[node-type="container"]'),
arr: arr,
})