js移动端树型列表


完整demo下载


效果图

使用示例


html

<div id="treeBox">div>

js

var G_treeData=[
    {
        name: 'title',
        id: 'title',
        totalNumber: 100,
        haveNumber: 38,
        subject_id: 'title',
        data:[
            {
                name: 'title',
                id: 'title',
                totalNumber: 100,
                haveNumber: 38,
                subject_id: 'title',
            },
            {
                name: 'title',
                id: 'title',
                totalNumber: 100,
                haveNumber: 38,
                subject_id: 'title',
            }
        ]
    }
]

var List = new AM_List($('.AM-tree-box'));
List.init(G_treeData,function(e){
    console.log(e); 
});

你可能感兴趣的:(js小插件)