日期:2014-05-16  浏览次数:20735 次

Ext.MessageBox.alert的超简单问题 - Web 开发 / Ajax
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>hello,world!</title>
<link rel="stylesheet" type="text/css=" herf="../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>
function fn()
{
//Ext.MessageBox.alert("hello","Hello,world");
//alert("hello,world!");
var win =new Ext.Window({title:"hello",width:300,height:200,html:'<h1>hello,easyif open 

source</h1>'});
win.show();
}
Ext.onReady(fn);
</script>

</head>

<body>
hello,world!
</body>
</html>
为啥无法显示对话框,是不是要要装什么软件,新手

------解决方案--------------------
Ext.onReady(function(){Ext.Msg.alert("title:","Hellow world!");});
试下了.

------解决方案--------------------
不好说,可能是JS文件路径问题
------解决方案--------------------
<body>
hello,world!
</body>
把hello,world!删掉就OK
------解决方案--------------------
原来这么简单呀