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 firsttimer在加载库时遇到问题_Extjs - Fatal编程技术网

extjs firsttimer在加载库时遇到问题

extjs firsttimer在加载库时遇到问题,extjs,Extjs,我知道这是一个基于java的框架,但我想尝试在asp.net应用程序中实现一个小部件,因为它主要涉及javascript内容。我将这些库添加到了我的项目文件夹目录中,似乎jar文件没有按预期加载 Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:52856/extjs/ext-debug.js Failed to load resource:

我知道这是一个基于java的框架,但我想尝试在asp.net应用程序中实现一个小部件,因为它主要涉及javascript内容。我将这些库添加到了我的项目文件夹目录中,似乎jar文件没有按预期加载

Failed to load resource: the server responded with a status of 404 
      (Not Found) http://localhost:52856/extjs/ext-debug.js
Failed to load resource: the server responded with a status of 404 
      (Not Found) http://localhost:52856/extjs/examples/app/simple/app.js
Failed to load resource: the server responded with a status of 404 
     (Not Found) http://localhost:52856/extjs/examples/shared/include-ext.js
Failed to load resource: the server responded with a status of 404 
     (Not Found) http://localhost:52856/extjs/examples/shared/options-toolbar.js
Failed to load resource: the server responded with a status of 404 
     (Not Found) http://localhost:52856/portal.js
Extjs是否有一个CDM,我们可以从中加载库,比如google.api

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>

 <script type="text/javascript" src="extjs/ext-debug.js"></script>
 <script type="text/javascript" src="extjs/examples/app/simple/app.js"></script>
 <script type="text/javascript" src="extjs/examples/shared/include-ext.js"></script>
 <script type="text/javascript" src="extjs/examples/shared/options-toolbar.js"></script>

 <link rel="stylesheet" type="text/css" href="extjs/examples/portal/portal.css" />

 <script type="text/javascript">
     Ext.Loader.setPath('Ext.app', 'classes');
</script>
<script type="text/javascript" src="portal.js"></script>
<script type="text/javascript">
    Ext.require([
        'Ext.layout.container.*',
        'Ext.resizer.Splitter',
        'Ext.fx.target.Element',
        'Ext.fx.target.Component',
        'Ext.window.Window',
        'Ext.app.Portlet',
        'Ext.app.PortalColumn',
        'Ext.app.PortalPanel',
        'Ext.app.Portlet',
        'Ext.app.PortalDropZone',
        'Ext.app.GridPortlet',
        'Ext.app.ChartPortlet'
    ]);

    Ext.onReady(function () {
        Ext.create('Ext.app.Portal');
    });
</script>

</head>


<body>

<span id="app-msg" style="display:none;"></span>

Extjs有一个CDN。您可以通过以下网址访问:

编辑: 从您的帖子中,看起来您正试图将整个示例导入到您的项目中。我会从小一点开始。以下是如何将窗口加载到页面的示例:

<script type="text/javascript" src="http://cdn.sencha.com/ext/gpl/4.2.1/ext-all.js">    </script>
<link rel="stylesheet" type="text/css" href="http://cdn.sencha.com/ext/gpl/4.2.1/resources/css/ext-all.css" />
<script type="text/javascript"> 
    Ext.require([
        'Ext.window.Window'
    ]);

     Ext.onReady(function () {
         var window = Ext.create('Ext.window.Window', {
             title: "my first ext window",
             width: 250,
             height: 150             
         });
         window.show();
    });
</script>  

外部要求([
“外部窗口,窗口”
]);
Ext.onReady(函数(){
var window=Ext.create('Ext.window.window'{
标题:“我的第一个外接窗口”,
宽度:250,
身高:150
});
window.show();
});

很抱歉,您能帮我做一件事吗添加一个加载窗口的示例。当然,添加示例的全部内容是可能的,但最好从基础开始。
<script type="text/javascript" src="http://cdn.sencha.com/ext/gpl/4.2.1/ext-all.js">    </script>
<link rel="stylesheet" type="text/css" href="http://cdn.sencha.com/ext/gpl/4.2.1/resources/css/ext-all.css" />
<script type="text/javascript"> 
    Ext.require([
        'Ext.window.Window'
    ]);

     Ext.onReady(function () {
         var window = Ext.create('Ext.window.Window', {
             title: "my first ext window",
             width: 250,
             height: 150             
         });
         window.show();
    });
</script>