EXTJS中HelloWorld

搞了一天終於弄清楚了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>

發佈了22 篇原創文章 · 獲贊 0 · 訪問量 1萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章