\n\n<pre><code>sencha create jsb -a index.html -p app.jsb3\n</code></pre>\n\n<p>For applications built on top of a dynamic server-side language like PHP, Ruby, ASP, etc., you can simply replace <code>index.html</code> with the actual URL of your application:</p><p>对于一个动态的服务器端语言,如PHP,Ruby中,ASP等之上的应用程序,你可以简单地更换index.html的实际URL与您的应用程序:</p>\n\n<pre><code>sencha
create jsb -a http://localhost/helloext/index.html -p app.jsb3\n</code></pre>\n\n<p>This scans your <code>index.html</code> file for all framework and application files that are actually used by the app, and then creates a JSB file called <code>app.jsb3</code>.
Generating the JSB3 first gives us a chance to modify the generated <code>app.jsb3</code> before building - this can be helpful if you have custom resources to copy, but in most cases we can immediately proceed to build the application with the second command:</p><p>这种扫描你的index.html文件,实际上是由应用程序使用的所有框架和应用程序文件,然后创建一个名为app.jsb3
jsb文件。生成JSB3首先给了我们一个机会来修改生成的app.jsb3建设-这可能是有用的,如果你有自定义的资源复制,但在大多数情况下,我们可以立即着手建立第二个命令的应用:</p>\n\n<pre><code>sencha build -p app.jsb3 -d .\n</code></pre>\n\n<p>This creates 2 files based on the JSB3 file:这将创建2个文件的基础上JSB3文件</p>\n\n<ol>\n<li><p><code>all-classes.js</code>
- This file contains all of your application's classes. It is not minified so is very useful for debugging problems with your built application. In our example this file is empty because our \"Hello Ext\" application does not contain any classes.此文件包含所有应用程序的类。它是不是精缩内置的应用程序的调试问题是非常有用的。在我们的例子中,这个文件是空的,因为我们的Hello
EXT应用程序不包含任何类。</p>
aaa9999
最新推荐文章于 2023-01-31 10:08:55 发布