Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
伙计们,我有两个问题:
在 Sencha Touch 2 中创建面板非常简单:
var myPanel = Ext.create('Ext.Panel', { html: 'my panel' });
或者如果您只想定义扩展 Ext.Panel 的类:
Ext.define('myPanel',{ extend: 'Ext.Panel' });
要显示和隐藏您的面板,请设置对它的引用并分别使用show()或hide()方法
show()
hide()