Home  >  Article  >  Web Front-end  >  Explain in detail the use of abs in EasyUI

Explain in detail the use of abs in EasyUI

亚连
亚连Original
2018-06-15 16:46:352038browse

Below I will share with you an example of using jQuery EasyUI tab panel tabs. It has a good reference value and I hope it will be helpful to everyone.

1. Set class="easyui-tabs" to the tab panel area p

2. Add multiple p's to the tab panel area, each p is a tab (each The panel must have a title)

3. Set the panel fit to true and adapt to the size of the parent container

4. Set the tab closable to true and add a close button

5 , through the hyperlink, click to add a new tab

Syntax: Page object.easyui plug-in (method name, parameters);

<!DOCTYPE html>
<html>
 <head>
 <meta charset="UTF-8">
 <title>easyui-选项卡面板tabs的使用</title>
 <!-- 导入jquery核心类库 -->
 <script type="text/javascript" src="../js/jquery-1.8.3.js"></script>
 <!-- 导入easyui类库 -->
 <link id="easyuiTheme" rel="stylesheet" type="text/css" href="../js/easyui/themes/default/easyui.css" rel="external nofollow" >
 <link rel="stylesheet" type="text/css" href="../js/easyui/themes/icon.css" rel="external nofollow" >
 <link rel="stylesheet" type="text/css" href="../css/default.css" rel="external nofollow" >
 <script type="text/javascript" src="../js/easyui/jquery.easyui.min.js"></script>
 <script type="text/javascript">
  //页面加载后执行
  $(function(){
  //对链接绑定点击事件
  $("#nwtxxb").click(function(){
   //添加一个新的选项卡
   $("#mytabs").tabs(&#39;add&#39;,{
   title:&#39;CSDN博客&#39;,
   content:&#39;学IT,你我他学习吧&#39;
   });
  });
  });
 </script>
 </head>
 <body class="easyui-layout">
 <p data-options="region:&#39;north&#39;,title:&#39;你我他学习吧-学习Java的好博客!&#39;" style="height:100px"></p>
 <p data-options="region:&#39;west&#39;,title:&#39;菜单导航&#39;" style="width:200px">
  <!--折叠面板-->
  <p class="easyui-accordion" data-options="fit:true">
  <p data-options="title:&#39;基础菜单&#39;">
   <a href="javascript:void(0)" rel="external nofollow" id="nwtxxb">你我他学习吧</a>
  </p>
  <p data-options="title:&#39;系统菜单&#39;">你我他学习吧</p>
  </p>
 </p>
 <p data-options="region:&#39;center&#39;,title:&#39;中部区域&#39;">
  <!--选项卡面板-->
  <p id="mytabs" class="easyui-tabs" data-options="fit:true">
  <p data-options="title:&#39;CSDN博客&#39;,closable:true">学Java后台编程,就来你我他学习吧!</p>
  <p data-options="title:&#39;博客园&#39;,closable:true">学前端开发,就来你我他学习吧!</p>
  </p>
 </p>
 <p data-options="region:&#39;east&#39;,title:&#39;东部区域&#39;" style="width:100px"></p>
 <p data-options="region:&#39;south&#39;,title:&#39;南部区域&#39;" style="height:100px"></p>
 </body>
</html>

The above is what I compiled for everyone. I hope it will be helpful to everyone in the future.

Related articles:

How to implement value passing and communication in vue2.0 components

webpack 4.0.0-beta.0 New features of the version (detailed tutorial)

Use SpringMVC to solve vue cross-domain requests

The life cycle of Vue components and Route (detailed tutorial)

User permission control in Vue2.0

WeChat payment through vue.js

The above is the detailed content of Explain in detail the use of abs in EasyUI. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn