easyui帮助文档上实例化组件的方式有两种:
1.Creation from up is even easier. Add 'easyui-panel' class to <div/> up.<div id="p" class="easyui-panel" title="My Panel"
style="width:500px;height:150px;padding:10px;background:#fafafa;"
data-options="iconCls:'icon-save',closable:true,
collapsible:true,minimizable:true,maximizable:true"> <p>panel content.</p>
<p>panel content.</p>
</div></div>
2.Create Panel programatically
<div id="p" style="padding:10px;">
<p>panel content.</p>
<p>panel content.</p>
</div>
$('#p').panel({
width:500,
height:150,
title: 'My Panel',
tools: [{
iconCls:'icon-add',
handler:function(){alert('new')}
},{
iconCls:'icon-save',
handler:function(){alert('save')}
}]
});
我想知道除了这两种方式,能使用new吗?像这样:var panel = new easyui.panel(
{
properties:...;
events:...;
}
);
easyuijquery
1.Creation from up is even easier. Add 'easyui-panel' class to <div/> up.<div id="p" class="easyui-panel" title="My Panel"
style="width:500px;height:150px;padding:10px;background:#fafafa;"
data-options="iconCls:'icon-save',closable:true,
collapsible:true,minimizable:true,maximizable:true"> <p>panel content.</p>
<p>panel content.</p>
</div></div>
2.Create Panel programatically
<div id="p" style="padding:10px;">
<p>panel content.</p>
<p>panel content.</p>
</div>
$('#p').panel({
width:500,
height:150,
title: 'My Panel',
tools: [{
iconCls:'icon-add',
handler:function(){alert('new')}
},{
iconCls:'icon-save',
handler:function(){alert('save')}
}]
});
我想知道除了这两种方式,能使用new吗?像这样:var panel = new easyui.panel(
{
properties:...;
events:...;
}
);
easyuijquery
解决方案 »
- 非常诡异的 正则表达式 失效问题..... A-Z 可以匹配小写字母, 求助...
- 请高手帮看看,为什么同样的代码却会失效啊
- ssl加密后页面有指向其他网站的地址Ie8下面出现提示
- Object doesn't support this property or method
- 关于struts的问题,急!!!!!
- js弹出层为什么挡不住原来的ocx控件?
- javascritp 复杂表格 排序 点击列头
- ----关于select的问题----
- 不用window.showmodaldialog而用window.open可不可以打开一个模式对话框?
- 如何插入一个输入框
- CKeditor 图片上传 完毕后的事件调用问题
- ext4如何换掉样式
width:500,
height:150,
title: 'My Panel',
tools: [{
iconCls:'icon-add',
handler:function(){alert('new')}
},{
iconCls:'icon-save',
handler:function(){alert('save')}
}]
});