EXTJS中HelloWorld

来源:互联网 发布:matlab数据转为vtk 编辑:程序博客网 时间:2024/06/03 17:35

搞了一天终于弄清楚了EXT的HelloWorld。

首先总结一下问题,主要是版本问题,学习哪个ExtJS,最好就找到相应的版本和相关资料。另外就是相关MyEclipse环境搭建问题。

第一,环境搭建,如果单纯的想要弄出来一个HelloWorld弹出对话框,txt足够了,当然肯定你需要一个集成环境,就是MyEclipse,需要配置java环境不再赘述,另外一个就是配置Tomcat。

第二,4.0。7只需要加入bootstrap.js以及ext-all.js即可。

如下代码:

<html>
  <head>
    <title>My JSP 'index.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">    
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">

<link rel="stylesheet" type="text/css" href="CSS/ext-all.css">
<script type = "text/javascript" src = "EXT/bootstrap.js"></script>
<script type="text/javascript" src = "EXT/ext-all.js"></script>
<script type="text/javascript" src = "EXT/hello.js"></script>
  </head>
  
  <body>
    This is my JSP page. <br>
  </body>
</html>

0 0
原创粉丝点击