1

I am following sencha touch 2 video tutorial:: http://docs.sencha.com/touch/2-0/#!/guide/getting_started

In that the instructor uses Ext.Define to define panels. He then loads it into main.js and app.js

But the document thats below that http://docs.sencha.com/touch/2-0/#!/guide/first_app uses Ext.create to create panels on launch

Video worked fine until he was showing simple panels, but when he extended a form panel, it stopped working. Video looks 5 months old and its official video.

Should I stop using Ext.Define and start Ext.create, because the examples do that. Please guide me on this.

Completely confused on this...

4

1 回答 1

0

定义类时使用 Ext.define。您将只使用一次 Ext.define 来创建一个类。

Ext.create 用于使用上述命令创建已定义类的实例。您将根据需要使用小部件的次数多次使用它。

于 2012-09-04T14:25:15.137 回答