必须
<script type="text/javascript" src="ext/ext-base.js" charset="UTF-8"></script>
<script type="text/javascript" src="ext/ext-all.js" charset="UTF-8"></script>
<script type="text/javascript" src="ext/ext-lang-zh_CN.js" charset="UTF-8"></script>
- ext-base.js 一定要在ext-all.js之前, 不然咋调也不好使!NND书上也没说害我调了半天@_@想骂人
- test.js must invoke after all above core ext js are invoked. else will not work.
- ext-lang-zh_CN.js is to translate English to Chinese js, if your pc is under English operational system, you should note it
and can not invoke it. One word , it is optional.
- in extjs, the "" and '' are the same. e.g. Ext.onReady(function(){var config= {
title: " hello" ,
msg: ' give me money!'
}
Ext.Msg.show(config);
}); - Ext.Msg.alert(); and Ext.Msg.show(); both can display dialog. the show() only display dialog without a "OK" button.