构建生产应用程序

时间:2012-09-13 19:26:18

标签: extjs extjs4 extjs4.1

我发现本教程解释了如何构建生产应用程序。

我的项目结构如下;

ProjRoot
 --> app 
     *--> ext (this is the extjs folder)
     *--> model (model folder it contain the model files of the projec)
     *--> view
     *--> controller
     *--> store
     *--> resources
     *--> servercode
 --> app.html
 --> app.js

正如教程所解释的那样,我从命令提示符导航到ProjRoot并输入以下代码;

sencha create jsb -a http://localhost/ProjRoot/app.html -p app.jsb3

这创建了一个文件,即1kb app.jsb3

然后我执行了以下代码

sencha build -p app.jsb3 -d .

这产生了2个文件。

1。)app-all.js 3KB

2。)all-classes.js 1KB

app-all.js包含连接在一起的app.js文件的代码,而all-classes.js内部没有任何代码;我在其中找到了以下代码。

/*
Copyright(c) 2012 Company Name
*/

根据教程,我应该能够在服务器中添加这两个文件并启动应用程序。但不幸的是,这对我不起作用。帮忙?

而且,我添加了启动html文件,其中我引用了上述2个文件。

有人可以给我一步一步的指示或告诉我我错过了什么吗?

更新

当我按照帖子中的描述输入命令时出现以下错误。我该如何解决?

C:\xampp\htdocs\ProjRoot>sencha create jsb -a a
pp.html -p proj.jsb3 -v
Error thown from your application with message: TypeError: 'null' is not a const
ructor

0 个答案:

没有答案
相关问题