菜单

要使用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,菜单组值返回

 				
				
请您对本章评分:
2016 - 2021 © srczh.com 版权所有 增值电信经营许可:粤ICP备19068081号
深圳市中文远星科技有限公司