1、导入ext js的lib
- <link rel="stylesheet" type="text/css" href="extjs/resources/css/ext-all.css" />
- <script type="text/javascript" src="extjs/adapter/ext/ext-base-debug.js">
- </script>
- <script type="text/javascript" src="extjs/ext-all-debug.js">
- </script>
将extjs的库放入webapp下面,再在html页面中引入即可,如下:
- <link rel="stylesheet" type="text/css" href="common/extlib/resources/css/ext-all.css" />
- <link rel="stylesheet" type="text/css" href="common/extlib/resources/css/ext-font-patch.css" />
- <link rel="stylesheet" type="text/css" href="common/css/common.css" />
- <script type="text/javascript" src="common/extlib/adapter/ext/ext-base.js"></script>
- <script type="text/javascript" src="common/extlib/ext-all.js"></script>
- <script type="text/javascript" src="common/js/utils.js"></script>
必须包含的内容:ext-all.css,ext-base.js,ext-all.js
顺带推荐js的调试器:在安装好firefox之后,在工具->附加组件中查找firebug进行安装即可。
本文转自 tianya23 51CTO博客,原文链接:http://blog.51cto.com/tianya23/671913,如需转载请自行联系原作者