Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/extjs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何运行extjs程序_Extjs_Extjs4 - Fatal编程技术网

如何运行extjs程序

如何运行extjs程序,extjs,extjs4,Extjs,Extjs4,我使用名为test的sencha创建了我的第一个extjs程序,它的主页是index.html。我认为应该有一种方法来初始化应用程序。index.html中没有提到extjs脚本 <!DOCTYPE HTML> <html manifest=""> <head> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta charset="UTF-8">

我使用名为test的sencha创建了我的第一个
extjs
程序,它的主页是index.html。我认为应该有一种方法来初始化应用程序。index.html中没有提到extjs脚本

<!DOCTYPE HTML>
<html manifest="">
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=10, user-scalable=yes">

    <title>Test</title>

    <script type="text/javascript">
        var Ext = Ext || {}; // Ext namespace won't be defined yet...

        // This function is called by the Microloader after it has performed basic
        // device detection. The results are provided in the "tags" object. You can
        // use these tags here or even add custom tags. These can be used by platform
        // filters in your manifest or by platformConfig expressions in your app.
        //
        Ext.beforeLoad = function (tags) {
            ...
            //};
        };


    </script>

    <!-- The line below must be kept intact for Sencha Cmd to build your application -->
    <script id="microloader" data-app="c0c58612-ec0d-4d6c-99a1-92decf199a29" type="text/javascript" src="bootstrap.js"></script>

</head>
<body></body>
</html>

试验
var Ext=Ext |{};//尚未定义Ext命名空间。。。
//此函数在执行基本操作后由Microloader调用
//设备检测。结果在“标记”对象中提供。你可以
//在此处使用这些标记,甚至添加自定义标记。这些可供平台使用
//在清单中筛选,或按应用程序中的platformConfig表达式筛选。
//
Ext.beforeLoad=函数(标记){
...
//};
};

若要使用extjs运行sencha应用程序,请使用
sencha应用程序监视

您能否解释一下您试图实现的目标?我解决了这个版本的问题,我发现我需要运行sencha命令我询问了如何解决此问题您如何使用此命令?它有什么作用?你能提供一个到文档的链接吗?