【easyUI】使用脚本动态创建panel

来源:互联网 发布:淘宝实木家具排行 编辑:程序博客网 时间:2024/05/21 15:48


   <div id="p" style="padding:10px;">

    <p>panel content.</p>
    <p>panel content.</p>

</div>


<script type="text/javascript">
$('#p').panel({
width:500,
height:150,
title: 'My Panel',
tools: [
{
iconCls:'icon-add',
handler:function(){alert('new')}
},
{
iconCls:'icon-save',
handler:function(){alert('save')}
}
]
});