Django_使用easyui

来源:互联网 发布:知乎live的入口 编辑:程序博客网 时间:2024/06/02 04:15
我们来写有个django页面布局 使用.fn.layout.defaults5西goodsTitle(function () { //create tree ('#categoryTree').tree({
                url:'/goods/categoryTree'
            });
            // add button to west panel
('body').layout("panel","west").panel({ tools:[ { iconCls:'icon-reload', handler:function () { ('#categoryTree').tree('reload')
                        }
                    },
                    {
                        iconCls:'icon-add',
                        handler:function () {
                            $('#category-form-dialog').dialog("open")
                        }
                    }
                ]
            })
            //create category form dialog
('#category-form-dialog').dialog({ title: '商品类别表单', width: 400, height: 200, closed: true, modal:true, buttons:[ { text:'保存', iconCls:'icon-save', handler:function () { ('#category-form-dialog').dialog('close')
                        }
                    },
                    {
                        text:'取消',
                        iconCls:'icon-cancel',
                        handler:function () {
('#category-form-dialog').dialog('close') } } ] }) })

悠悠商品管理系统

form