extjs 4.0.7 Desktop 替换claaes.js
最近在学习Extjs 发现Demo 中有个Desktop的于是就尝试学习一下。结果发现怎么改都没效果后来偶然发现 默认采用的是classes.js 为压缩后的js 引入已经修改后的分开的js瞬间 一切ok了。
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>ExtTop - Desktop Sample App</title>
<link rel="stylesheet" type="text/css" href="../../resources/css/ext-all.css" />
<link rel="stylesheet" type="text/css" href="css/desktop.css" />
<!-- new -->
<script type="text/javascript" src="../../ext-all.js"></script>
<script type="text/javascript" src="../../locale/ext-lang-zh_CN.js"></script>
<!--<script type="text/javascript" src="classes.js"></script> -->
<script type="text/javascript" src="js/Module.js"></script>
<script type="text/javascript" src="js/Video.js"></script>
<script type="text/javascript" src="js/Wallpaper.js"></script>
<script type="text/javascript" src="js/FitAllLayout.js"></script>
<script type="text/javascript" src="js/StartMenu.js"></script>
<script type="text/javascript" src="js/TaskBar.js"></script>
<script type="text/javascript" src="js/ShortcutModel.js"></script>
<script type="text/javascript" src="js/Desktop.js"></script>
<script type="text/javascript" src="js/App.js"></script>
<script type="text/javascript" src="WallpaperModel.js"></script>
<script type="text/javascript" src="VideoWindow.js"></script>
<script type="text/javascript" src="BogusModule.js"></script>
<script type="text/javascript" src="BogusMenuModule.js"></script>
<script type="text/javascript" src="Settings.js"></script>
<script type="text/javascript" src="TabWindow.js"></script>
<script type="text/javascript" src="GridWindow.js"></script>
<script type="text/javascript" src="AccordionWindow.js"></script>
<script type="text/javascript" src="SystemStatus.js"></script>
<script type="text/javascript" src="Notepad.js"></script>
<script type="text/javascript" src="start_menu.js"></script>
<script type="text/javascript" src="App.js"></script>
<script type="text/javascript">
Ext.Loader.setPath({
‘Ext.ux.desktop‘: ‘js‘,
MyDesktop: ‘‘
});
Ext.require(‘MyDesktop.App‘);
var myDesktopApp;
Ext.onReady(function () {
myDesktopApp = new MyDesktop.App();
});
</script>
</head>
<body>
<a href="http://www.sencha.com" target="_blank" alt="Powered by Ext JS"
id="poweredby"><div></div></a>
</body>
</html>
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。