<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="测试layout2.aspx.cs" Inherits="MyStartEasyUi.测试layout2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>jquery layout - www.jb200.com</title>
<script src="jquery-easyui-1.3.4/jquery-1.8.0.min.js" type="text/
javascript"></script>
<script src="jquery-easyui-1.3.4/jquery.easyui.min.js" type="text/javascript"></script>
<script src="jquery-easyui-1.3.4/locale/easyui-lang-zh_CN.js" type="text/javascript"></script>
<link href="jquery-easyui-1.3.4/themes/icon.css" rel="stylesheet" type="text/css" />
<link href="jquery-easyui-1.3.4/themes/default/easyui.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
$(function () {
$("#cc").layout();
})
//获取中间面板Title
function getPanelTitle() {
var pnlCenter = $("#cc").layout('panel', 'center');
var title = pnlCenter.panel('options').title;
console.info(title);
}
</script>
</head>
<body> (
脚本学堂,脚本编程,网站编程)
<div id="cc" fit="true">
<div data-options="region:'north',title:'North Title',split:true" style="height: 100px;">
</div>
<div data-options="region:'south',title:'South Title',split:true" style="height: 100px;">
</div>
<div data-options="region:'east',iconCls:'icon-reload',title:'East',split:true" style="width: 100px;">
</div>
<div data-options="region:'west',title:'West',split:true" style="width: 100px;">
</div>
<div data-options="region:'center',title:'我是中间面板'" style="padding: 5px; background: #eee;">
<input type="button" value="获取中间面板Title" onclick="getPanelTitle();" />
</div>
</div>
</body>
</html>