要使用srczh.js中的菜单,请在页面中引入srczh.menu.js。
id/class | 对象 | ||
clas | 类扩展 | ||
type | 类型 | mu-a,mu-b,mu-c,mu-d,mu-r | |
尺寸 | mu-1,mu-2,mu-3 | ||
menu | 菜单 | 数组 | ["菜单a","菜单b","菜单c"] |
child | 菜单子项 | 数组 | [1,["子a","子b","子c"]],[2,["子d","子e","子f"]] |
普通横向下拉菜单
var pa={id:"mainmenu",type:"mu-a",clas:"mu-1 mg-5 bkp-d bds-1 cr-b",menu:["菜单a","菜单b","菜单c","菜单d"],child:[,["子a","子b","子c"],,["子d","子e","子f"]]}; new src_menu(pa);
普通竖向弹出菜单
var pa={id:"mainmenuc",type:"mu-c",clas:"mu-2 mg-5 bkp-d bds-1 cr-b",menu:["菜单a","菜单b","菜单c","菜单d"],child:[,["子a","子b","子c"],,["子d","子e","子f"]]}; new src_menu(pa);
普通散列图标菜单
var pa={id:"mainmenud",type:"mu-d",clas:"mu-1 mg-5", menu:["", "", "", ""], child:[, [" 子a", " 子b", " 子c"], , [" 子d", " 子e", " 子f"] ]}; new src_menu(pa);
指定mu-v,菜单组值返回