---
title: "layout"
author: "youyang_java"
date: "2014-05-14T15:54:40Z"
tags: []
categories: ["Web前端"]
slug: "layout"
draft: false
lastmod: "2014-05-14T15:54:40Z"
id: 2066385
url: "https://youyang-java.iteye.com/blog/2066385"
---

![](http://dl2.iteye.com/upload/attachment/0097/1097/102d7d3c-9280-3fb2-ad0f-7568a959fed1.png)

 

&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"&gt;  
&lt;html&gt;  
  &lt;head&gt;  
    &lt;title&gt;1.html&lt;/title&gt;  
   
    &lt;meta http-equiv="keywords" content="keyword1,keyword2,keyword3"&gt;  
    &lt;meta http-equiv="description" content="this is my page"&gt;  
    &lt;meta http-equiv="content-type" content="text/html; charset=UTF-8"&gt;  
     
    &lt;!-- easyui的样式 --&gt;  
    &lt;link rel="stylesheet" type="text/css" href="../jslib/jquery-easyui-1.3.1/themes/default/easyui.css"&gt;  
    &lt;!-- 小图标的样式 --&gt;  
    &lt;link rel="stylesheet" type="text/css" href="../jslib/jquery-easyui-1.3.1/themes/icon.css"&gt;  
     
    &lt;script type="text/javascript" src="../jslib/jquery-easyui-1.3.1/jquery-1.8.0.min.js"&gt;&lt;/script&gt;  
    &lt;script type="text/javascript" src="../jslib/jquery-easyui-1.3.1/jquery.easyui.min.js"&gt;&lt;/script&gt;  
    &lt;script type="text/javascript" src="../jslib/jquery-easyui-1.3.1/locale/easyui-lang-zh\_CN.js"&gt;&lt;/script&gt;  
   
 &lt;script type="text/javascript"&gt;  
  $(function(){  
     
  });  
    
  function getCenterPanel(){  
   var centerPanel = $('#blayout').layout('panel','center');  
   console.info(centerPanel);  
   //panel组件有个options方法，该方法返回panel组件的所有配置信息  
   alert(centerPanel.panel('options').title);  
  }  
 &lt;/script&gt;  
   
  &lt;/head&gt;  
   
  &lt;body id="blayout" class="easyui-layout"&gt;   
    &lt;div data-options="region:'north',title:'North Title',split:true" style="height:100px;"&gt;  
     &lt;input type="button" value="获取center面板" onclick="getCenterPanel();"/&gt;  
    &lt;/div&gt;   
    &lt;div data-options="region:'south',title:'South Title',split:true" style="height:100px;"&gt;&lt;/div&gt;   
    &lt;div data-options="region:'east',iconCls:'icon-reload',title:'East',split:true" style="width:100px;"&gt;&lt;/div&gt;   
    &lt;div data-options="region:'west',title:'West',split:true" style="width:100px;"&gt;&lt;/div&gt;   
    &lt;!-- href只加载1.html里面的body部分代码，其余的都不管 --&gt;   
    &lt;div data-options="region:'center',title:'center title',border:false,href:'1.html'" style="padding:5px;background:#eee;"&gt;&lt;/div&gt;   
  &lt;/body&gt; 

&lt;/html&gt;