小程序流程进阶之路_jQuery EasyUI Layout完成tabs标签

2021-01-11 14:06

jQuery EasyUI Layout实现tabs标签的实例       这篇文章主要介绍了jQuery EasyUI Layout实现tabs标签的实例的相关资料,希望通过本文能帮助到大家实现这样的功能,需要的朋友可以参考下

二、创建Layout:

 %@ page language="java" pageEncoding="UTF-8"% 
 %@ taglib prefix="c" uri="jsp/jstl/core"% 
 !DOCTYPE HTML 
 html 
 head 
 title SSHE DEMO /title 
 meta http-equiv="pragma" content="no-cache" 
 meta http-equiv="cache-control" content="no-cache" 
 meta http-equiv="expires" content="0" 
 meta http-equiv="keywords" content="keyword1,keyword2,keyword3" 
 meta http-equiv="description" content="This is my page" 
 script type="text/javascript" src="jslib/jquery-easyui-1.3.1/jquery-1.8.0.min.js" /script 
 script type="text/javascript" src="jslib/jquery-easyui-1.3.1/jquery.easyui.min.js" /script 
 script type="text/javascript" src="jslib/jquery-easyui-1.3.1/locale/easyui-lang-zh_CN.js" /script 
 link rel="stylesheet" href="jslib/jquery-easyui-1.3.1/themes/default/easyui.css" rel="external nofollow" type="text/css" /link 
 link rel="stylesheet" href="jslib/jquery-easyui-1.3.1/themes/icon.css" rel="external nofollow" type="text/css" /link 
 script type="text/javascript" src="jslib/syUtil.js" /script 
 /head 
 body 
 div data-options="region:'north'" /div 
 div data-options="region:'south'" /div 
 div data-options="region:'west'" 
 jsp:include page="" /jsp:include 
 /div 
 div data-options="region:'east',title:'east',split:true" /div 
 div data-options="region:'center',title:'欢迎使用SSHE示例系统'" 
 jsp:include page="" /jsp:include 
 /div 
 jsp:include page="" /jsp:include 
 jsp:include page="" /jsp:include 
 /body 
 /html 

三、创建中间页面:

 %@ page language="java" pageEncoding="UTF-8"% 
 script type="text/javascript" 
 function addTab(opts) {
 var t = $('#layout_center_tabs');
 if (t.tabs('exists', opts.title)) {
 t.tabs('select', opts.title);
 } else {
 t.tabs('add', opts);
 /script 
 div id="layout_center_tabs" data-options="fit:true,border:false" 
 div title="首页" /div 
 /div 

四、菜单页:west.jsp

 %@ page language="java" pageEncoding="UTF-8"% 
 div data-options="title:'功能导航',border:false,fit:true" 
 div data-options="fit:true,border:false" 
 div title="系统菜单" data-options="iconCls:'icon-save'" 
 ul id="layout_west_tree" data-options="
 url : '${pageContext.request.contextPath}/menuAction!getAllTreeNode.action',
 parentField : 'pid',
 lines : true,
 onClick : function(node) {
 if (node.attributes.url) {
 var url = '${pageContext.request.contextPath}' + node.attributes.url;
 addTab({
 title : node.text,
 closable : true,
 href : url
 " /ul 
 /div 
 div title="Title2" data-options="iconCls:'icon-reload'" /div 
 /div 
 /div 

如有疑问请留言或者到本站社区交流讨论,感谢阅读,希望能帮助到大家,谢谢大家对本站的支持!




扫描二维码分享到微信

在线咨询
联系电话

020-66889888