如何从4到6升级我的Extjs应用程序? [英] How to upgarde my Extjs application from 4 to 6?

查看:182
本文介绍了如何从4到6升级我的Extjs应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

现在在我的应用程序中,我使用的是Extjs 4,我想将其迁移到Extjs 6以进行响应式设计。但是我的应用程序不是由Sencha CMD创建的,那么我无法使用此工具进行升级。可以通过在HTML视图中更改此资源来升级:

Now in my application i'm using Extjs 4 and i want to migrate it to Extjs 6 to be responsive design . But my application is not created by Sencha CMD then i can not use this tool for upgrading .is it possible to uppgrade by only changing this resources in my HTML views:

<link rel="stylesheet" href="/css/ext-all.css"     />
<script type="text/javascript" src="/js/ext-4.1.1a/ext-all.js"  ></script>


推荐答案

您可以避免使用CMD工具并链接完整的库来源于手动,如果这是你所要求的。如果有一些突破性的变化,那么现有的Ext4应用程序可能不会开箱即用:

You can avoid using CMD tool and link the full library sources manually, if that's what you are asking. It probably won't work out of the box for an existing Ext4 app if there were some breaking changes:

<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">

    <link rel="stylesheet" type="text/css" href="/ext/classic/theme-triton/resources/theme-triton-all.css">
    <link rel="stylesheet" type="text/css" href="/ext/packages/charts/classic/triton/resources/charts-all.css">
    <link rel="stylesheet" type="text/css" href="/ext/packages/ux/classic/triton/resources/ux-all.css">

    <script type="text/javascript" src="/ext/ext-all.js"></script>
    <script type="text/javascript" src="/ext/classic/theme-triton/theme-triton.js"></script>
    <script type="text/javascript" src="/ext/packages/charts/classic/charts.js"></script>
    <script type="text/javascript" src="/ext/packages/ux/classic/ux.js"></script>
</head>

这篇关于如何从4到6升级我的Extjs应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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