整了好久没有整出来,其实特简单,代码如下:
<script>
function stapler(){
Ext.Msg.show({
title:'milton',
msg:'Have you seen my stapler?',
buttons:{
yes:true,
no:true,
cancel:true
}
});
}
function a(){
alert("Everything is ready.");
}
Ext.onReady(stapler);
</script>
特别注意 Ext.onReady(stapler);这句,stapler后面是没有括号的!
浙公网安备 33010602011771号