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

extjs学习笔记-对话框

test1.php

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>extjs1</title>
??? <link rel="stylesheet" type="text/css" href="/extjs/extjs/resources/css/ext-all.css" />
??? <!-- GC -->
??????? <!-- LIBS -->
??????? <script type="text/javascript" src="/extjs/extjs/adapter/ext/ext-base.js"></script>
??????? <!-- ENDLIBS -->
??? <script type="text/javascript" src="/extjs/extjs/ext-all.js"></script>
??? <script type="text/javascript" src="test1.js"></script>
?<script type="text/javascript">
Ext.onReady(function(){?
?Ext.MessageBox.alert('start', 'start successfully.');

});???
</script>

</head>
<body>
<h1>&nbsp;</h1>
<p>
??? <b>Alert</b><br />
??? Standard alert message dialog.
??? <button id="mb8">Show</button>
</p>
<p>&nbsp;</p>
</body>
</html>

test1.js

Ext.onReady(function(){?
?Ext.MessageBox.alert('start', 'start successfully.');
??? Ext.get('mb8').on('click', function(){
??????? Ext.MessageBox.alert('Status', 'Changes saved successfully.');
??? });
});???


?