$('#selectPluginSingle').selectPlugin({
                    ajaxUrl: '../stub/demo.json',
                    selectSuccess: function (d) {
                        console.log(d);
                    },
                    selectError: function (i) {
                        console.log(i);
                    }
                });
            
        
                $('#selectPluginButtonGoods').selectPlugin({
                    isSku: false,
                    isSelectAll: true,
                    single: false,
                    type: 0,
                    title: '选择商品',
                    ajaxUrl: '../stub/demo.json',
                    ajaxSkuUrl: '../stub/demo_sku.json',
                    ajaxType: 'get',
                    selectLength: 0,
                    ajaxDataType: 'json',
                    postData: {
                        name: 1
                    },
                    selectSuccess: function (data) {
                        console.log(data)
                    },
                    selectError: function (info) {
                        console.error(info);
                    }
                });
            
        
                $('#selectPluginButtonGoods2').selectPlugin({
                    isSku: false,
                    isSelectAll: true,
                    single: false,
                    type: 0,
                    ajaxUrl: '../stub/demo.json',
                    ajaxSkuUrl: '../stub/demo_sku.json',
                    ajaxType: 'get',
                    selectLength: 0,
                    ajaxDataType: 'json',
                    selectSuccess: function (data) {
                        console.log(data)
                    },
                    selectError: function (info) {
                        console.error(info);
                    }
                });
            
        
                $('#selectPluginButtonGoodsSku').selectPlugin({
                    isSku: true,
                    isSelectAll: false,
                    type: 0,
                    title: '选择商品sku',
                    ajaxUrl: '../stub/demo.json',
                    ajaxSkuUrl: '../stub/demo_sku.json',
                    ajaxType: 'get',
                    ajaxDataType: 'json',
                    selectLength: 5,
                    brandList: [{
                        text: 'hello world',
                        value: 1
                    }],
                    categoryList: [{
                        text: 'hello world',
                        value: 2
                    }],
                    showCateAndBrand: true,
                    selectSuccess: function (data) {
                        console.log(data)
                    },
                    selectError: function (info) {
                        console.error(info);
                    }
                });
            
        
                $('#selectPluginButtonUsers').selectPlugin({
                    single: true,
                    isSku: false,
                    isSelectAll: false,
                    type: 1,
                    title: '选择用户',
                    selectLength: 5,
                    ajaxUrl: '../stub/demo_users.json',
                    ajaxType: 'get',
                    ajaxDataType: 'json',
                    selectSuccess: function (data) {
                        console.log(data)
                    },
                    selectError: function (info) {
                        console.error(info);
                    }
                });
            
        
                $('#selectPluginButtonCoupon').selectPlugin({
                    single: true,
                    isSku: false,
                    isSelectAll: false,
                    type: 2,
                    title: '选择优惠券',
                    selectLength: 5,
                    ajaxUrl: '../stub/demo_coupon.json',
                    ajaxType: 'get',
                    ajaxDataType: 'json',
                    selectSuccess: function (data) {
                        console.log(data)
                    },
                    selectError: function (info) {
                        console.error(info);
                    }
                });
            
        
                $('#selectPluginButtonWarehouse').selectPlugin({
                    single: false,
                    isSku: false,
                    isSelectAll: true,
                    type: 3,
                    title: '选择仓库',
                    selectLength: 5,
                    ajaxUrl: '../stub/demo_warehouse.json',
                    ajaxType: 'get',
                    ajaxDataType: 'json',
                    selectSuccess: function (data) {
                        console.log(data)
                    },
                    selectError: function (info) {
                        console.error(info);
                    }
                })
            
        
                $('#selectPluginButtonBrand').selectPlugin({
                    single: false,
                    isSku: false,
                    isSelectAll: true,
                    type: 4,
                    title: '选择品牌',
                    selectLength: 0,
                    ajaxUrl: '../stub/demo_brand.json',
                    ajaxType: 'get',
                    ajaxDataType: 'json',
                    selectSuccess: function (data) {
                        console.log(data)
                    },
                    selectError: function (info) {
                        console.error(info);
                    }
                });
            
        
                $('#selectPluginButtonCategory').selectPlugin({
                    single: false,
                    isSku: false,
                    isSelectAll: true,
                    type: 5,
                    title: '选择类目',
                    selectLength: 0,
                    ajaxUrl: '../stub/demo_category.json',
                    ajaxType: 'get',
                    ajaxDataType: 'json',
                    postData: {
                        name: 1
                    },
                    selectSuccess: function (data) {
                        console.log(data)
                    },
                    selectError: function (info) {
                        console.error(info);
                    }
                })