52,797
社区成员
发帖
与我相关
我的任务
分享
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>window.html</title>
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="this is my page">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="extjs/resources/css/ext-all.css" />
<script type="text/javascript" src="extjs/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="extjs/ext-all.js"></script>
<script type="text/javascript" src="extjs/source/locale/ext-lang-zh_CN.js"></script>
<script type="text/javascript">
Ext.onReady(function () {
var win = new Ext.Window({
width:500,
height:300,
closable:true,
title:'添加人员',
closeAction:'close',
resizable:false,
layout:'form',
modal:true,
items:[{
xtype:'textfield',
fieldLabel:'姓名'
}],
buttons:[{
text:'确定',
handler:function(){alert(1);}
},{
text:'取消',
handler:function(){ win.close();}
}]
}).show();
});
</script>
</head>
<body>
</body>
</html>