问题
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>
回答1:
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>
回答2:
Please visit this video, hope you will learn how to upgrade.
https://www.youtube.com/watch?v=_dWGP13S0vs
回答3:
If you have not yet been able to resolve the issue, you could visit the link: Upgrade Tips
This links contains the tips that I used to upgrade my application extjs 4.2 to extjs 6.
来源:https://stackoverflow.com/questions/36472759/how-to-upgarde-my-extjs-application-from-4-to-6