这是我照着老师的例子写的,别人运行的时候没有出现什么错误,但是在我的电脑上就是运行不出来,我不知道是怎么回事啊,有没有高手帮忙解决一下,我不胜感激!这是我写的代码:
Code
<link rel="stylesheet" type="text/css" href="../resources/css/ext-all.css"/>
<script type="text/javascript" src="../adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="../ext-all.js"></script>
<script type="text/javascript" src="../src/locale/ext-lang-zh_CN.js"></script>
<script type="text/javascript">
Ext.onReady(function(){
var _window = new Ext.Window({
title:"测试窗体",
width:300,
layout:"form",
plain:true,
buttonAlign:"center",
items:[{
xtype:"textfield",
fieldLabel:"姓名"
},
{
xtype:"textfield",
fieldLabel:"密码"}
],
buttons:[{
text:"确定",
handler:function(){
var cll = this.ownerCt.items;
//var temp = "";
// temp += "姓名是" + cll.first().getValue();
// temp += "密码是" + cll.itemAt(1).getValue();
alert(cll.first().getValue());
}
}]
});
_window.show();
});
</script>
</head>