我正在尝试 Extjs 书的示例之一。我想定义一个函数来显示消息并运行该函数,所以我复制了以下代码,但它不起作用。这有什么问题?!
<!DOCTYPE html>
<html>
<head>
<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 src="extjs/adapter/ext/ext-base.js"></script>
<script src="extjs/ext-all-debug.js"></script>
<script>
Function stapler(){
Ext.Msg.show({
title: 'Milton',
msg: 'Have you seen my stapler?',
buttons: {
yes: true,
no: true,
cancel: true
}
});
}
Ext.onReady(stapler());
</script>
<title>JSP Page</title>
</head>
<body>
<h1>Hello World!</h1>
<h1>Good Bye World!</h1>
</body>
</html>