- 注册时间
- 2013-5-3
- 最后登录
- 2024-11-20
- 阅读权限
- 150
- 积分
- 32966
- 精华
- 0
- 帖子
- 14366
|
Ruby 发表于 2019-1-25 14:48
那怎么重新生成 - var menuButton = new mini.MenuButton();
- var menu = new mini.Menu()
- var data=[
- { id: "addUser", text: "增加用户", iconCls: "icon-add", url: "../datagrid/celledit.html" },
- { id: "editUser", text: "修改用户", iconCls: "icon-edit", url: "../datagrid/rowedit.html" },
- { id: "removeUser", text: "删除用户", iconCls: "icon-remove", url: "../datagrid/datagrid.html" },
-
- { id: "addRight", text: "查询权限", iconCls: "icon-user", url: "../tree/detailgrid.html" },
- { id: "editRight", text: "操作权限", iconCls: "icon-addnew", url: "../buttonedit/selectGrid.html" }
- ]
- menu.setItems(data)
- menuButton.setText("按钮");
- menuButton.setMenu(menu);
- menuButton.render(document.body);
复制代码 |
|