说明: 本教程在我推荐的ajax/ext目录规范环境下开发,如环境不同,请自行修改相关路径

本项目框架及代码在此下载


1.打开项目


2.在根目录下建立demo.html:

 

EXT 表单设计器(guibuilder)简单使用教程<html>
EXT 表单设计器(guibuilder)简单使用教程
<head>
EXT 表单设计器(guibuilder)简单使用教程
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
EXT 表单设计器(guibuilder)简单使用教程
<title>ExtJs Gui Designer Demo</title>
EXT 表单设计器(guibuilder)简单使用教程
<!-- The ExtJs base 2.02 -->
EXT 表单设计器(guibuilder)简单使用教程
<link rel="stylesheet" type="text/css" href="framework/ext-2.0.2/resources/css/ext-all.css" temp_href="framework/ext-2.0.2/resources/css/ext-all.css"/>
EXT 表单设计器(guibuilder)简单使用教程
<script type="text/javascript" src="framework/ext-2.0.2/adapter/ext/ext-base.js" temp_src="framework/ext-2.0.2/adapter/ext/ext-base.js"></script>
EXT 表单设计器(guibuilder)简单使用教程
<script type="text/javascript" src="framework/ext-2.0.2/ext-all.js" temp_src="framework/ext-2.0.2/ext-all.js"></script>
EXT 表单设计器(guibuilder)简单使用教程
EXT 表单设计器(guibuilder)简单使用教程
<!-- The Json Panel -->
EXT 表单设计器(guibuilder)简单使用教程
<script type="text/javascript" src="widget/Ext.ux.JsonPanel.js" temp_src="widget/Ext.ux.JsonPanel.js"></script>
EXT 表单设计器(guibuilder)简单使用教程
</head>
EXT 表单设计器(guibuilder)简单使用教程
EXT 表单设计器(guibuilder)简单使用教程
<body>

 

注意 其中user.json就是GUIBUILDER中生成的代码.

3.打开GuiBuilder


 

4.设计界面

1).首先双击 FormPanel,或把FormPanel拖进主面板

3)再插入一个按钮button,添加handle事件

4)点击click here to edit,弹出脚本编辑框,在其实输入:


function(){


alert(Ext.get("username").getValue());


}

输入,点击apply

5) 点击 copy json,或打开edit json,拷贝其中的代码,将其另存为user.json

6) 打开demo.html

相关文章:

  • 2022-01-27
  • 2021-12-05
  • 2021-07-25
  • 2021-11-24
  • 2022-02-09
  • 2021-04-19
  • 2021-11-11
  • 2022-12-23
猜你喜欢
  • 2022-01-22
  • 2021-09-27
  • 2021-10-06
  • 2021-11-12
相关资源
相似解决方案