最小的 ExtJS 包是什么? [英] What is the smallest ExtJS package?

查看:27
本文介绍了最小的 ExtJS 包是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道 Ext JS 2.2 所需的最低限度的文件吗?我知道 ExtJS 站点有一个功能可以"build" 一个小版本的 ExtJS (ext.js).js) 作为 ext-all.js 的替代品,但这是为了最小化客户端上 ExtJS 的大小.我有兴趣最小化服务器上​​的内容.目前 SDK 带有以下子目录:

Does anyone know the bare minimum files required for Ext JS 2.2? I know the ExtJS site has a feature to "build" a small version of ExtJS (ext.js) as a replacement for ext-all.js but that's for minimizing the size of ExtJS on the client. I'm interested in minimizing what's on the server. Currently the SDK comes with the following subdirectories:

adapter
air
build
docs
examples
resources
source

我认为删除示例、文档和空气是非常安全的.但是,我们是否可以删除其他内容以使其更小,或者是否存在记录最少所需文件的资源(除了大型 javascript 源代码语料库)?

I think its pretty safe to remove examples, docs, and air. However, are there other things we can remove to make this smaller or is there a resource (besides the large javascript source code corpus) that documents the minimum required files?

推荐答案

此链接解释了包含顺序我的 JavaScript 文件的正确包含顺序是什么?

这是最小的包含集

<link rel="stylesheet" type="text/css" href="../extjs/resources/css/ext-all.css">
<script type="text/javascript" src="../extjs/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="../extjs/ext-all.js"></script>

ext-all.css 依赖于 ../extjs/resources/css 中的文件,所以你也应该包括整个目录结构.

The ext-all.css depends on files in ../extjs/resources/css so you should include that entire directory structure also.

所以你至少需要以下文件

So you'd need the following files at a minimum

  • extjs/resources/**/*
  • extjs/适配器/ext/ext-base.js
  • extjs/ext-all.js

如果您没有将 Ext JS 用于任何 UI 组件,那么您不需要任何样式表和支持图像,但在这种情况下,您必须质疑为什么要使用 Ext JS,因为那是这是强项.

If you're not using Ext JS for any of the UI components then you don't need any of the stylesheets and supporting images, but in that case you'd have to question why you're using Ext JS since that's it's strong point.

这篇关于最小的 ExtJS 包是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆